public class AuthenticationManager extends Object implements MessageHandler
| Constructor and Description |
|---|
AuthenticationManager(TransportManager tm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateInteractive(String user,
String[] submethods,
InteractiveCallback cb) |
boolean |
authenticateNone(String user) |
boolean |
authenticatePassword(String user,
String pass) |
boolean |
authenticatePublicKey(String user,
AgentProxy proxy) |
boolean |
authenticatePublicKey(String user,
char[] PEMPrivateKey,
String password,
SecureRandom rnd) |
boolean |
getPartialSuccess() |
String[] |
getRemainingMethods(String user) |
void |
handleEndMessage(Throwable cause)
Called to inform that no more messages will be delivered.
|
void |
handleMessage(byte[] msg,
int msglen) |
public AuthenticationManager(TransportManager tm)
public String[] getRemainingMethods(String user) throws IOException
IOExceptionpublic boolean getPartialSuccess()
public boolean authenticatePublicKey(String user, AgentProxy proxy) throws IOException
IOExceptionpublic boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) throws IOException
IOExceptionpublic boolean authenticateNone(String user) throws IOException
IOExceptionpublic boolean authenticatePassword(String user, String pass) throws IOException
IOExceptionpublic boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException
IOExceptionpublic void handleMessage(byte[] msg,
int msglen)
throws IOException
handleMessage in interface MessageHandlerIOExceptionpublic void handleEndMessage(Throwable cause) throws IOException
MessageHandlerhandleEndMessage in interface MessageHandlercause - For diagnosis, the reason that caused the transport to close down.IOExceptionCopyright © 2014. All rights reserved.