Class KexManager

  • All Implemented Interfaces:
    MessageHandler

    public class KexManager
    extends java.lang.Object
    implements MessageHandler
    KexManager.
    Version:
    $Id: KexManager.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
    Author:
    Christian Plattner, plattner@trilead.com
    • Method Detail

      • getOrWaitForConnectionInfo

        public ConnectionInfo getOrWaitForConnectionInfo​(int minKexCount)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getDefaultServerHostkeyAlgorithmList

        public static java.lang.String[] getDefaultServerHostkeyAlgorithmList()
      • checkServerHostkeyAlgorithmsList

        public static void checkServerHostkeyAlgorithmsList​(java.lang.String[] algos)
      • getDefaultKexAlgorithmList

        public static java.lang.String[] getDefaultKexAlgorithmList()
      • checkKexAlgorithmList

        public static void checkKexAlgorithmList​(java.lang.String[] algos)
      • 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