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 $
- Author:
- Christian Plattner, plattner@trilead.com
-
Field Summary
Fields -
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) 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.
-
Field Details
-
PROPERTY_TIMEOUT
-
TIMEOUT
public static final long TIMEOUT
-
-
Constructor Details
-
AuthenticationManager
-
-
Method Details
-
getRemainingMethods
- Throws:
IOException
-
getPartialSuccess
public boolean getPartialSuccess() -
authenticateGssapiWithMic
- Throws:
IOException
-
authenticatePublicKey
- 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
-