Interface ServerKeyLookup
-
- All Known Implementing Classes:
JGitServerKeyVerifier
public interface ServerKeyLookup
Offers operations to retrieve server keys from known_hosts files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<PublicKey>
lookup(org.apache.sshd.client.session.ClientSession session, SocketAddress remote)
Retrieves all public keys known for a given remote.
-
-
-
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 configremote
- to find entries for- Returns:
- a possibly empty list of entries found, including revoked ones
-
-