@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,
SocketAddress remoteAddress,
PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
boolean verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
clientSession - the current ClientSessionremoteAddress - the host's SocketAddressserverKey - the presented server PublicKeytrue if the key is accepted for the hostCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.