public class RequiredServerKeyVerifier extends java.lang.Object implements ServerKeyVerifier
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
RequiredServerKeyVerifier(java.security.PublicKey requiredKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verifyServerKey(ClientSession sshClientSession,
java.net.SocketAddress remoteAddress,
java.security.PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
public RequiredServerKeyVerifier(java.security.PublicKey requiredKey)
public boolean verifyServerKey(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)
ServerKeyVerifierverifyServerKey in interface ServerKeyVerifiersshClientSession - the current sessionremoteAddress - the hostserverKey - the presented keytrue if the key is accepted for the hostCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.