public class AcceptAllServerKeyVerifier extends Object implements ServerKeyVerifier
Modifier and Type | Field and Description |
---|---|
static ServerKeyVerifier |
INSTANCE |
protected org.slf4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
boolean |
verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
protected final org.slf4j.Logger log
public static final ServerKeyVerifier INSTANCE
public boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey)
ServerKeyVerifier
verifyServerKey
in interface ServerKeyVerifier
sshClientSession
- the current sessionremoteAddress
- the hostserverKey
- the presented keytrue
if the key is accepted for the hostCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.