Class DefaultClientKexExtensionHandler

    • Constructor Detail

      • DefaultClientKexExtensionHandler

        public DefaultClientKexExtensionHandler()
    • Method Detail

      • handleKexInitProposal

        public void handleKexInitProposal​(Session session,
                                          boolean initiator,
                                          java.util.Map<KexProposalOption,​java.lang.String> proposal)
                                   throws java.io.IOException
        Description copied from interface: KexExtensionHandler
        Invoked when a peer is ready to send the KEX options proposal or has received such a proposal. Note: this method is called during the negotiation phase even if isKexExtensionsAvailable returns false for the session.
        Specified by:
        handleKexInitProposal in interface KexExtensionHandler
        Parameters:
        session - The Session initiating or receiving the proposal
        initiator - true if the proposal is about to be sent, false if this is a proposal received from the peer.
        proposal - The proposal contents - Caveat emptor: the proposal is modifiable i.e., the handler can modify it before being sent or before being processed (if incoming)
        Throws:
        java.io.IOException
      • 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