public class JGitServerKeyVerifier extends Object implements org.apache.sshd.client.keyverifier.ServerKeyVerifier, ServerKeyLookup
ServerKeyVerifier from Apache MINA sshd and our
ServerKeyDatabase.| Constructor and Description |
|---|
JGitServerKeyVerifier(ServerKeyDatabase database)
Creates a new
JGitServerKeyVerifier using the given
ServerKeyDatabase. |
| Modifier and Type | Method and Description |
|---|---|
List<PublicKey> |
lookup(org.apache.sshd.client.session.ClientSession session,
SocketAddress remoteAddress)
Retrieves all public keys known for a given remote.
|
boolean |
verifyServerKey(org.apache.sshd.client.session.ClientSession session,
SocketAddress remoteAddress,
PublicKey serverKey) |
public JGitServerKeyVerifier(@NonNull ServerKeyDatabase database)
JGitServerKeyVerifier using the given
ServerKeyDatabase.database - to usepublic List<PublicKey> lookup(org.apache.sshd.client.session.ClientSession session, SocketAddress remoteAddress)
ServerKeyLookuplookup in interface ServerKeyLookupsession - needed to determine the config files if specified in the ssh
configremoteAddress - to find entries forpublic boolean verifyServerKey(org.apache.sshd.client.session.ClientSession session,
SocketAddress remoteAddress,
PublicKey serverKey)
verifyServerKey in interface org.apache.sshd.client.keyverifier.ServerKeyVerifierCopyright © 2020 Eclipse JGit Project. All rights reserved.