public class AuthenticationManager extends java.lang.Object implements MessageHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
authenticated |
(package private) java.lang.String |
banner |
(package private) boolean |
connectionClosed |
(package private) boolean |
initDone |
(package private) boolean |
isPartialSuccess |
(package private) java.util.Vector |
packets |
(package private) java.lang.String[] |
remainingMethods |
(package private) TransportManager |
tm |
| Constructor and Description |
|---|
AuthenticationManager(TransportManager tm) |
| Modifier and Type | Method and 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,
AgentProxy proxy) |
(package private) boolean |
authenticatePublicKey(java.lang.String user,
AgentProxy proxy,
AgentIdentity identity) |
boolean |
authenticatePublicKey(java.lang.String user,
char[] PEMPrivateKey,
java.lang.String password,
java.security.SecureRandom rnd) |
(package private) byte[] |
deQueue() |
(package private) byte[] |
getNextMessage() |
boolean |
getPartialSuccess() |
java.lang.String[] |
getRemainingMethods(java.lang.String user) |
void |
handleEndMessage(java.lang.Throwable cause)
Called to inform that no more messages will be delivered.
|
void |
handleMessage(byte[] msg,
int msglen) |
private boolean |
initialize(java.lang.String user) |
(package private) boolean |
methodPossible(java.lang.String methName) |
TransportManager tm
java.util.Vector packets
boolean connectionClosed
java.lang.String banner
java.lang.String[] remainingMethods
boolean isPartialSuccess
boolean authenticated
boolean initDone
public AuthenticationManager(TransportManager tm)
boolean methodPossible(java.lang.String methName)
byte[] deQueue()
throws java.io.IOException
java.io.IOExceptionbyte[] getNextMessage()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String[] getRemainingMethods(java.lang.String user)
throws java.io.IOException
java.io.IOExceptionpublic boolean getPartialSuccess()
private boolean initialize(java.lang.String user)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticatePublicKey(java.lang.String user,
AgentProxy proxy)
throws java.io.IOException
java.io.IOExceptionboolean authenticatePublicKey(java.lang.String user,
AgentProxy proxy,
AgentIdentity identity)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticatePublicKey(java.lang.String user,
char[] PEMPrivateKey,
java.lang.String password,
java.security.SecureRandom rnd)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticateNone(java.lang.String user)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticatePassword(java.lang.String user,
java.lang.String pass)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticateInteractive(java.lang.String user,
java.lang.String[] submethods,
InteractiveCallback cb)
throws java.io.IOException
java.io.IOExceptionpublic void handleMessage(byte[] msg,
int msglen)
throws java.io.IOException
handleMessage in interface MessageHandlerjava.io.IOExceptionpublic void handleEndMessage(java.lang.Throwable cause)
throws java.io.IOException
MessageHandlerhandleEndMessage in interface MessageHandlercause - For diagnosis, the reason that caused the transport to close down.java.io.IOException