|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sshtools.j2ssh.transport.IgnoreHostKeyVerification
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 Summary | |
IgnoreHostKeyVerification()
|
|
| Method Summary | |
boolean |
verifyHost(java.lang.String host,
SshPublicKey pk)
Simply returns true to all requests. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IgnoreHostKeyVerification()
| Method Detail |
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 key
true
TransportProtocolException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||