@FunctionalInterface
public interface ServerKeyVerifier
ServerKeyVerifier
is used on the client side to authenticate the key provided by the server.Modifier and Type | Method and Description |
---|---|
boolean |
verifyServerKey(ClientSession clientSession,
java.net.SocketAddress remoteAddress,
java.security.PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
boolean verifyServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)
clientSession
- the current ClientSession
remoteAddress
- the host's SocketAddress
serverKey
- the presented server PublicKey
true
if the key is accepted for the host