public class DelegatingServerKeyVerifier extends AbstractLoggingBean implements ServerKeyVerifier
log
Constructor and Description |
---|
DelegatingServerKeyVerifier() |
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.
|
getSimplifiedLogger
public boolean verifyServerKey(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)
ServerKeyVerifier
verifyServerKey
in interface ServerKeyVerifier
sshClientSession
- the current ClientSession
remoteAddress
- the host's SocketAddress
serverKey
- the presented server PublicKey
true
if the key is accepted for the host