com.sshtools.common.ui
Class SshToolsApplicationClientPanel.SinkHostKeyVerification

java.lang.Object
  extended by com.sshtools.common.ui.SshToolsApplicationClientPanel.SinkHostKeyVerification
All Implemented Interfaces:
HostKeyVerification
Enclosing class:
SshToolsApplicationClientPanel

 class SshToolsApplicationClientPanel.SinkHostKeyVerification
extends java.lang.Object
implements HostKeyVerification


Constructor Summary
SshToolsApplicationClientPanel.SinkHostKeyVerification()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshToolsApplicationClientPanel.SinkHostKeyVerification

SshToolsApplicationClientPanel.SinkHostKeyVerification()
Method Detail

verifyHost

public boolean verifyHost(java.lang.String host,
                          SshPublicKey pk)
                   throws TransportProtocolException
Description copied from interface: HostKeyVerification

Called by the transport protocol to verify the identity of the server through the supplied public key.

Specified by:
verifyHost in interface HostKeyVerification
Parameters:
host - the name of the host
pk - the public key supplied during key-exchange
Returns:
true if the host is acceptable, otherwise false
Throws:
TransportProtocolException - if an error occurs