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