public final class PromiscuousVerifier extends java.lang.Object implements HostKeyVerifier
| Constructor and Description |
|---|
PromiscuousVerifier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(java.lang.String hostname,
int port,
java.security.PublicKey key)
This callback is invoked when the server's host key needs to be verified.
|
public boolean verify(java.lang.String hostname,
int port,
java.security.PublicKey key)
HostKeyVerifierverify in interface HostKeyVerifierhostname - remote hostnameport - remote portkey - host key of servertrue if key is acceptable, false otherwise