Class DelegatingServerKeyVerifier

    • Constructor Detail

      • DelegatingServerKeyVerifier

        public DelegatingServerKeyVerifier()
    • Method Detail

      • verifyServerKey

        public boolean verifyServerKey​(ClientSession session,
                                       java.net.SocketAddress remoteAddress,
                                       java.security.PublicKey serverKey)
        Description copied from interface: ServerKeyVerifier
        Verify that the server key provided is really the one of the host.
        Specified by:
        verifyServerKey in interface ServerKeyVerifier
        Parameters:
        session - the current ClientSession
        remoteAddress - the host's SocketAddress
        serverKey - the presented server PublicKey
        Returns:
        true if the key is accepted for the host