public interface HostKeyVerification
An interface to allow the transport protocol to verify the public key supplied by the server during key-exchange
Modifier and Type | Method and Description |
---|---|
boolean |
verifyHost(java.lang.String host,
SshPublicKey pk)
Called by the transport protocol to verify the identity of the server
through the supplied public key.
|
boolean verifyHost(java.lang.String host, SshPublicKey pk) throws TransportProtocolException
Called by the transport protocol to verify the identity of the server through the supplied public key.
host
- the name of the hostpk
- the public key supplied during key-exchangeTransportProtocolException
- if an error occursCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.