Package com.trilead.ssh2.auth
Class AuthenticationManager
java.lang.Object
com.trilead.ssh2.auth.AuthenticationManager
- All Implemented Interfaces:
MessageHandler
AuthenticationManager.
- Version:
- $Id: AuthenticationManager.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) String
(package private) boolean
(package private) boolean
(package private) boolean
(package private) Vector
static final String
(package private) String[]
static final long
(package private) TransportManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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, char[] PEMPrivateKey, String password, SecureRandom rnd) boolean
authenticatePublicKey
(String user, AgentProxy proxy) (package private) boolean
authenticatePublicKey
(String user, AgentProxy proxy, AgentIdentity identity) (package private) byte[]
deQueue()
(package private) byte[]
boolean
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.private boolean
initialize
(String user) (package private) boolean
methodPossible
(String methName)
-
Field Details
-
Constructor Details
-
AuthenticationManager
-
-
Method Details
-
methodPossible
-
deQueue
- Throws:
IOException
-
getNextMessage
- Throws:
IOException
-
getRemainingMethods
- Throws:
IOException
-
getPartialSuccess
public boolean getPartialSuccess() -
initialize
- Throws:
IOException
-
authenticateGssapiWithMic
- Throws:
IOException
-
authenticatePublicKey
- Throws:
IOException
-
authenticatePublicKey
boolean authenticatePublicKey(String user, AgentProxy proxy, AgentIdentity identity) throws IOException - Throws:
IOException
-
authenticatePublicKey
public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) throws IOException - Throws:
IOException
-
authenticateNone
- Throws:
IOException
-
authenticatePassword
- Throws:
IOException
-
authenticateInteractive
public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException - Throws:
IOException
-
handleMessage
Description copied from interface:MessageHandler
Handle message.- Specified by:
handleMessage
in interfaceMessageHandler
- Parameters:
msg
- the msgmsglen
- the msglen- Throws:
IOException
- the io exception
-
handleEndMessage
Description copied from interface:MessageHandler
Called to inform that no more messages will be delivered.- Specified by:
handleEndMessage
in interfaceMessageHandler
- Parameters:
cause
- For diagnosis, the reason that caused the transport to close down.- Throws:
IOException
- the io exception
-