public class AuthenticationManager extends Object implements MessageHandler
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_TIMEOUT |
static long |
TIMEOUT |
Constructor and Description |
---|
AuthenticationManager(TransportManager tm) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateGssapiWithMic(String user,
String host) |
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)
Handle message.
|
public static final String PROPERTY_TIMEOUT
public static final long TIMEOUT
public AuthenticationManager(TransportManager tm)
public String[] getRemainingMethods(String user) throws IOException
IOException
public boolean getPartialSuccess()
public boolean authenticateGssapiWithMic(String user, String host) throws IOException
IOException
public boolean authenticatePublicKey(String user, AgentProxy proxy) throws IOException
IOException
public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) throws IOException
IOException
public boolean authenticateNone(String user) throws IOException
IOException
public boolean authenticatePassword(String user, String pass) throws IOException
IOException
public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException
IOException
public void handleMessage(byte[] msg, int msglen) throws IOException
MessageHandler
handleMessage
in interface MessageHandler
msg
- the msgmsglen
- the msglenIOException
- the io exceptionpublic void handleEndMessage(Throwable cause) throws IOException
MessageHandler
handleEndMessage
in interface MessageHandler
cause
- For diagnosis, the reason that caused the transport to close down.IOException
- the io exceptionCopyright © 2020. All rights reserved.