Package com.trilead.ssh2.auth
Class AuthenticationManager
java.lang.Object
com.trilead.ssh2.auth.AuthenticationManager
- All Implemented Interfaces:
MessageHandler
AuthenticationManager.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateInteractive
(String user, String[] submethods, InteractiveCallback cb) boolean
authenticateNone
(String user) boolean
authenticatePassword
(String user, String pass) boolean
authenticatePublicKey
(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) boolean
authenticatePublicKey
(String user, AgentProxy proxy) boolean
String[]
getRemainingMethods
(String user) void
handleMessage
(byte[] msg, int msglen)
-
Constructor Details
-
AuthenticationManager
-
-
Method Details
-
getRemainingMethods
- Throws:
IOException
-
getPartialSuccess
public boolean getPartialSuccess() -
authenticatePublicKey
- Throws:
IOException
-
authenticatePublicKey
public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) throws IOException - Throws:
IOException
-
authenticateNone
- Throws:
IOException
-
authenticatePassword
- Throws:
IOException
-
authenticateInteractive
public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException - Throws:
IOException
-
handleMessage
- Specified by:
handleMessage
in interfaceMessageHandler
- Throws:
IOException
-