Class JGitServerKeyVerifier

  • All Implemented Interfaces:
    org.apache.sshd.client.keyverifier.ServerKeyVerifier, ServerKeyLookup

    public class JGitServerKeyVerifier
    extends Object
    implements org.apache.sshd.client.keyverifier.ServerKeyVerifier, ServerKeyLookup
    A bridge between the ServerKeyVerifier from Apache MINA sshd and our ServerKeyDatabase.
    • Method Detail

      • lookup

        public List<PublicKey> lookup​(org.apache.sshd.client.session.ClientSession session,
                                      SocketAddress remoteAddress)
        Description copied from interface: ServerKeyLookup
        Retrieves all public keys known for a given remote.
        Specified by:
        lookup in interface ServerKeyLookup
        session - needed to determine the config files if specified in the ssh config
        remoteAddress - to find entries for
        a possibly empty list of entries found, including revoked ones
      • verifyServerKey

        public boolean verifyServerKey​(org.apache.sshd.client.session.ClientSession session,
                                       SocketAddress remoteAddress,
                                       PublicKey serverKey)
        Specified by:
        verifyServerKey in interface org.apache.sshd.client.keyverifier.ServerKeyVerifier