public class

AuthenticationManager

extends Object
implements MessageHandler
java.lang.Object
   ↳ com.trilead.ssh2.auth.AuthenticationManager

Class Overview

AuthenticationManager.

Summary

Fields
protected boolean authenticated
String banner
boolean connectionClosed
protected boolean initDone
protected boolean isPartialSuccess
Vector packets
protected String[] remainingMethods
protected GenericTransportManager tm
Public Constructors
AuthenticationManager(GenericTransportManager tm)
Public Methods
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 getPartialSuccess()
String[] getRemainingMethods(String user)
void handleMessage(byte[] msg, int msglen)
boolean tryPublicKey(String user, Object publicKey)
Protected Methods
byte[] getNextMessage()
boolean initialize(String user)
boolean methodPossible(String methName)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.trilead.ssh2.transport.MessageHandler

Fields

protected boolean authenticated

String banner

boolean connectionClosed

protected boolean initDone

protected boolean isPartialSuccess

Vector packets

protected String[] remainingMethods

Public Constructors

public AuthenticationManager (GenericTransportManager tm)

Parameters
tm

Public Methods

public boolean authenticateInteractive (String user, String[] submethods, InteractiveCallback cb)

Parameters
user
submethods
cb
Throws
IOException

public boolean authenticateNone (String user)

Parameters
user
Throws
IOException

public boolean authenticatePassword (String user, String pass)

Parameters
user
pass
Throws
IOException

public boolean authenticatePublicKey (String user, char[] PEMPrivateKey, String password, SecureRandom rnd)

Parameters
user
PEMPrivateKey
password
rnd
Throws
IOException

public boolean getPartialSuccess ()

public String[] getRemainingMethods (String user)

Parameters
user
Throws
IOException

public void handleMessage (byte[] msg, int msglen)

Parameters
msg
msglen
Throws
IOException

public boolean tryPublicKey (String user, Object publicKey)

Parameters
user
publicKey
Throws
IOException

Protected Methods

protected byte[] getNextMessage ()

Throws
IOException

protected boolean initialize (String user)

Parameters
user
Throws
IOException

protected boolean methodPossible (String methName)

Parameters
methName