Interface ServerKeyLookup

  • All Known Implementing Classes:
    JGitServerKeyVerifier

    public interface ServerKeyLookup
    Offers operations to retrieve server keys from known_hosts files.
    • Method Detail

      • lookup

        @NonNull
        List<PublicKey> lookup​(org.apache.sshd.client.session.ClientSession session,
                               SocketAddress remote)
        Retrieves all public keys known for a given remote.
        Parameters:
        session - needed to determine the config files if specified in the ssh config
        remote - to find entries for
        Returns:
        a possibly empty list of entries found, including revoked ones