Class DefaultClientKexExtensionHandler

    • Constructor Detail

      • DefaultClientKexExtensionHandler

        public DefaultClientKexExtensionHandler()
    • Method Detail

      • handleKexExtensionRequest

        public boolean handleKexExtensionRequest​(Session session,
                                                 int index,
                                                 int count,
                                                 java.lang.String name,
                                                 byte[] data)
                                          throws java.io.IOException
        Description copied from interface: KexExtensionHandler
        Invoked by KexExtensionHandler.handleKexExtensionsMessage(Session, Buffer) in order to handle a specific extension.
        Specified by:
        handleKexExtensionRequest in interface KexExtensionHandler
        Parameters:
        session - The Session through which the message was received
        index - The 0-based extension index
        count - The total extensions in the message
        name - The extension name
        data - The extension data
        Returns:
        true whether to proceed to the next extension or stop processing the rest
        Throws:
        java.io.IOException
      • handleServerSignatureAlgorithms

        protected void handleServerSignatureAlgorithms​(Session session,
                                                       java.util.Collection<java.lang.String> serverAlgorithms)
        Perform updates after a server-sig-algs extension has been received. The set of algorithms announced by the server is set as attribute SERVER_ALGORITHMS of the session.
        Parameters:
        session - the message was received for
        serverAlgorithms - signature algorithm names announced by the server