Interface HostKeyVerification

    • Method Detail

      • verifyHost

        boolean verifyHost​(java.lang.String host,
                           SshPublicKey pk)
                    throws TransportProtocolException

        Called by the transport protocol to verify the identity of the server through the supplied public key.

        Parameters:
        host - the name of the host
        pk - the public key supplied during key-exchange
        Returns:
        true if the host is acceptable, otherwise false
        Throws:
        TransportProtocolException - if an error occurs
        Since:
        0.2.0