Package com.sshtools.j2ssh.transport
Interface HostKeyVerification
- All Known Subinterfaces:
SystemVerification
- All Known Implementing Classes:
AbstractHostKeyVerification
,AbstractKnownHostsKeyVerification
,ConsoleHostKeyVerification
,ConsoleKnownHostsKeyVerification
,DialogHostKeyVerification
,DialogKnownHostsKeyVerification
,IgnoreHostKeyVerification
public interface HostKeyVerification
An interface to allow the transport protocol to verify the public key supplied by the server during key-exchange
- Since:
- 0.2.0
- Version:
- $Revision: 1.29 $
- Author:
- Lee David Painter
-
Method Summary
Modifier and TypeMethodDescriptionboolean
verifyHost
(String host, SshPublicKey pk) Called by the transport protocol to verify the identity of the server through the supplied public key.
-
Method Details
-
verifyHost
Called by the transport protocol to verify the identity of the server through the supplied public key.
- Parameters:
host
- the name of the hostpk
- the public key supplied during key-exchange- Returns:
- true if the host is acceptable, otherwise false
- Throws:
TransportProtocolException
- if an error occurs- Since:
- 0.2.0
-