public class RequiredServerKeyVerifier extends AbstractLoggingBean implements ServerKeyVerifier
log| Constructor and Description |
|---|
RequiredServerKeyVerifier(PublicKey requiredKey) |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getRequiredKey() |
boolean |
verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
getSimplifiedLoggerpublic RequiredServerKeyVerifier(PublicKey requiredKey)
public final PublicKey getRequiredKey()
public boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey)
ServerKeyVerifierverifyServerKey in interface ServerKeyVerifiersshClientSession - the current ClientSessionremoteAddress - the host's SocketAddressserverKey - the presented server PublicKeytrue if the key is accepted for the hostCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.