Package com.sshtools.j2ssh.transport
Class IgnoreHostKeyVerification
- java.lang.Object
-
- com.sshtools.j2ssh.transport.IgnoreHostKeyVerification
-
- All Implemented Interfaces:
HostKeyVerification
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.
- Since:
- 0.2.0
- Version:
- $Revision: 1.15 $
- Author:
- Lee David Painter
-
-
Constructor Summary
Constructors Constructor Description IgnoreHostKeyVerification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverifyHost(java.lang.String host, SshPublicKey pk)Simply returnstrueto all requests.
-
-
-
Method Detail
-
verifyHost
public boolean verifyHost(java.lang.String host, SshPublicKey pk) throws TransportProtocolExceptionSimply returns
trueto all requests.- Specified by:
verifyHostin interfaceHostKeyVerification- Parameters:
host- the name of the hostpk- the hosts public key- Returns:
true- Throws:
TransportProtocolException- if an error occurs- Since:
- 0.2.0
-
-