public interface HostKeyVerifier
Modifier and Type | Method and Description |
---|---|
boolean |
verify(String hostname,
int port,
PublicKey key)
This callback is invoked when the server's host key needs to be verified.
|
boolean verify(String hostname, int port, PublicKey key)
hostname
- remote hostnameport
- remote portkey
- host key of servertrue
if key is acceptable, false
otherwiseCopyright © 2009–2017. All rights reserved.