Top Description Methods
org.eclipse.jgit.internal.transport.sshd

public Interface ServerKeyLookup

Known Direct Implementers
org.eclipse.jgit.internal.transport.sshd.JGitServerKeyVerifier
Imports
java.net.SocketAddress, java.security.PublicKey, java.util.List, org.apache.sshd.client.session.ClientSession, org.eclipse.jgit.annotations.NonNull

Offers operations to retrieve server keys from known_hosts files.

Method Summary

Modifier and TypeMethod and Description
public List<PublicKey>

Returns:

a possibly empty list of entries found, including revoked ones
lookup
(ClientSession
needed to determine the config files if specified in the ssh config
session
,
SocketAddress
to find entries for
remote
)

Retrieves all public keys known for a given remote.

Method Detail

lookupback to summary
public List<PublicKey> lookup(ClientSession session, SocketAddress remote)

Retrieves all public keys known for a given remote.

Parameters
session:ClientSession

needed to determine the config files if specified in the ssh config

remote:SocketAddress

to find entries for

Returns:List<PublicKey>

a possibly empty list of entries found, including revoked ones

Annotations
@NonNull