Class AuthenticationManager

  • All Implemented Interfaces:
    MessageHandler

    public class AuthenticationManager
    extends java.lang.Object
    implements MessageHandler
    AuthenticationManager.
    Version:
    $Id: AuthenticationManager.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
    • Field Detail

      • PROPERTY_TIMEOUT

        public static final java.lang.String PROPERTY_TIMEOUT
      • TIMEOUT

        public static final long TIMEOUT
      • 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

    • 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
      • authenticateGssapiWithMic

        public boolean authenticateGssapiWithMic​(java.lang.String user,
                                                 java.lang.String host)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • authenticatePublicKey

        public boolean authenticatePublicKey​(java.lang.String user,
                                             AgentProxy proxy)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • authenticatePublicKey

        boolean authenticatePublicKey​(java.lang.String user,
                                      AgentProxy proxy,
                                      AgentIdentity identity)
                               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
        Description copied from interface: MessageHandler
        Handle message.
        Specified by:
        handleMessage in interface MessageHandler
        Parameters:
        msg - the msg
        msglen - the msglen
        Throws:
        java.io.IOException - the io exception
      • handleEndMessage

        public void handleEndMessage​(java.lang.Throwable cause)
                              throws java.io.IOException
        Description copied from interface: MessageHandler
        Called to inform that no more messages will be delivered.
        Specified by:
        handleEndMessage in interface MessageHandler
        Parameters:
        cause - For diagnosis, the reason that caused the transport to close down.
        Throws:
        java.io.IOException - the io exception