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.- Version:
- $Id: AuthenticationManager.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanauthenticated(package private) java.lang.Stringbanner(package private) booleanconnectionClosed(package private) booleaninitDone(package private) booleanisPartialSuccess(package private) java.util.Vectorpackets(package private) java.lang.String[]remainingMethods(package private) TransportManagertm
-
Constructor Summary
Constructors Constructor Description AuthenticationManager(TransportManager tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticateInteractive(java.lang.String user, java.lang.String[] submethods, InteractiveCallback cb)booleanauthenticateNone(java.lang.String user)booleanauthenticatePassword(java.lang.String user, java.lang.String pass)booleanauthenticatePublicKey(java.lang.String user, char[] PEMPrivateKey, java.lang.String password, java.security.SecureRandom rnd)booleanauthenticatePublicKey(java.lang.String user, AgentProxy proxy)(package private) booleanauthenticatePublicKey(java.lang.String user, AgentProxy proxy, AgentIdentity identity)(package private) byte[]deQueue()(package private) byte[]getNextMessage()booleangetPartialSuccess()java.lang.String[]getRemainingMethods(java.lang.String user)voidhandleEndMessage(java.lang.Throwable cause)Called to inform that no more messages will be delivered.voidhandleMessage(byte[] msg, int msglen)private booleaninitialize(java.lang.String user)(package private) booleanmethodPossible(java.lang.String methName)
-
-
-
Field Detail
-
tm
TransportManager tm
-
packets
java.util.Vector packets
-
connectionClosed
boolean connectionClosed
-
banner
java.lang.String banner
-
remainingMethods
java.lang.String[] remainingMethods
-
isPartialSuccess
boolean isPartialSuccess
-
authenticated
boolean authenticated
-
initDone
boolean initDone
-
-
Constructor Detail
-
AuthenticationManager
public AuthenticationManager(TransportManager tm)
-
-
Method Detail
-
methodPossible
boolean methodPossible(java.lang.String methName)
-
deQueue
byte[] deQueue() throws java.io.IOException- Throws:
java.io.IOException
-
getNextMessage
byte[] getNextMessage() throws java.io.IOException- Throws:
java.io.IOException
-
getRemainingMethods
public java.lang.String[] getRemainingMethods(java.lang.String user) throws java.io.IOException- Throws:
java.io.IOException
-
getPartialSuccess
public boolean getPartialSuccess()
-
initialize
private boolean initialize(java.lang.String user) throws java.io.IOException- Throws:
java.io.IOException
-
authenticatePublicKey
public boolean authenticatePublicKey(java.lang.String user, AgentProxy proxy) throws java.io.IOException- Throws:
java.io.IOException
-
authenticatePublicKey
boolean authenticatePublicKey(java.lang.String user, AgentProxy proxy, AgentIdentity identity) 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:
handleMessagein interfaceMessageHandler- Throws:
java.io.IOException
-
handleEndMessage
public void handleEndMessage(java.lang.Throwable cause) throws java.io.IOExceptionDescription copied from interface:MessageHandlerCalled to inform that no more messages will be delivered.- Specified by:
handleEndMessagein interfaceMessageHandler- Parameters:
cause- For diagnosis, the reason that caused the transport to close down.- Throws:
java.io.IOException
-
-