public class IgnoreHostKeyVerification extends java.lang.Object implements HostKeyVerification
A simple host key verification implementation that automatically approves the servers host key. It should be noted that using this implementation will render the protocol insecure against active attacks.
| Constructor and Description |
|---|
IgnoreHostKeyVerification() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verifyHost(java.lang.String host,
SshPublicKey pk)
Simply returns
true to all requests. |
public boolean verifyHost(java.lang.String host,
SshPublicKey pk)
throws TransportProtocolException
Simply returns true to all requests.
verifyHost in interface HostKeyVerificationhost - the name of the hostpk - the hosts public keytrueTransportProtocolException - if an error occursCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.