ch.ethz.ssh2.auth
Class AuthenticationManager

java.lang.Object
  extended by ch.ethz.ssh2.auth.AuthenticationManager
All Implemented Interfaces:
MessageHandler

public class AuthenticationManager
extends java.lang.Object
implements MessageHandler

AuthenticationManager.

Version:
2.50, 03/15/10
Author:
Christian Plattner

Field Summary
(package private)  boolean authenticated
           
(package private)  java.lang.String banner
           
(package private)  boolean connectionClosed
           
(package private)  boolean initDone
           
(package private)  boolean isPartialSuccess
           
(package private)  java.util.Vector packets
           
(package private)  java.lang.String[] remainingMethods
           
(package private)  TransportManager tm
           
 
Constructor Summary
AuthenticationManager(TransportManager tm)
           
 
Method Summary
 boolean authenticateInteractive(java.lang.String user, java.lang.String[] submethods, InteractiveCallback cb)
           
 boolean authenticateNone(java.lang.String user)
           
 boolean authenticatePassword(java.lang.String user, java.lang.String pass)
           
 boolean authenticatePublicKey(java.lang.String user, char[] PEMPrivateKey, java.lang.String password, java.security.SecureRandom rnd)
           
(package private)  byte[] deQueue()
           
(package private)  byte[] getNextMessage()
           
 boolean getPartialSuccess()
           
 java.lang.String[] getRemainingMethods(java.lang.String user)
           
 void handleMessage(byte[] msg, int msglen)
           
private  boolean initialize(java.lang.String user)
           
(package private)  boolean methodPossible(java.lang.String methName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                                     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:
handleMessage in interface MessageHandler
Throws:
java.io.IOException