public abstract class StaticServerKeyVerifier extends AbstractLoggingBean implements ServerKeyVerifier
true/false
regardlesslog
Modifier | Constructor and Description |
---|---|
protected |
StaticServerKeyVerifier(boolean acceptance) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleAcceptance(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
protected void |
handleRejection(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
boolean |
isAccepted() |
boolean |
verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
public final boolean isAccepted()
public final 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 hostprotected void handleAcceptance(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey)
protected void handleRejection(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.