com.trilead.ssh2.auth

Class AuthenticationManager

Implemented Interfaces:
MessageHandler

public class AuthenticationManager
extends java.lang.Object
implements MessageHandler

AuthenticationManager.

Constructor Summary

AuthenticationManager(TransportManager tm)

Method Summary

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)

Constructor Details

AuthenticationManager

public AuthenticationManager(TransportManager tm)

Method Details

authenticateInteractive

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

authenticateNone

public boolean authenticateNone(String user)
            throws IOException

authenticatePassword

public boolean authenticatePassword(String user,
                                    String pass)
            throws IOException

authenticatePublicKey

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

getPartialSuccess

public boolean getPartialSuccess()

getRemainingMethods

public String[] getRemainingMethods(String user)
            throws IOException

handleMessage

public void handleMessage(byte[] msg,
                          int msglen)
            throws IOException
Specified by:
handleMessage in interface MessageHandler