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.IOException
byte[] getNextMessage() throws java.io.IOException
java.io.IOException
public java.lang.String[] getRemainingMethods(java.lang.String user) throws java.io.IOException
java.io.IOException
public boolean getPartialSuccess()
private boolean initialize(java.lang.String user) throws java.io.IOException
java.io.IOException
public boolean authenticatePublicKey(java.lang.String user, AgentProxy proxy) throws java.io.IOException
java.io.IOException
boolean authenticatePublicKey(java.lang.String user, AgentProxy proxy, AgentIdentity identity) throws java.io.IOException
java.io.IOException
public boolean authenticatePublicKey(java.lang.String user, char[] PEMPrivateKey, java.lang.String password, java.security.SecureRandom rnd) throws java.io.IOException
java.io.IOException
public boolean authenticateNone(java.lang.String user) throws java.io.IOException
java.io.IOException
public boolean authenticatePassword(java.lang.String user, java.lang.String pass) throws java.io.IOException
java.io.IOException
public boolean authenticateInteractive(java.lang.String user, java.lang.String[] submethods, InteractiveCallback cb) throws java.io.IOException
java.io.IOException
public void handleMessage(byte[] msg, int msglen) throws java.io.IOException
handleMessage
in interface MessageHandler
java.io.IOException
public void handleEndMessage(java.lang.Throwable cause) throws java.io.IOException
MessageHandler
handleEndMessage
in interface MessageHandler
cause
- For diagnosis, the reason that caused the transport to close down.java.io.IOException