public class DialogKnownHostsKeyVerification extends AbstractKnownHostsKeyVerification
| Constructor and Description |
|---|
DialogKnownHostsKeyVerification(java.awt.Component parent)
Creates a new DialogKnownHostsKeyVerification object.
|
DialogKnownHostsKeyVerification(java.awt.Component parent,
java.lang.String hostFileName)
Creates a new DialogKnownHostsKeyVerification object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDeniedHost(java.lang.String host) |
void |
onHostKeyMismatch(java.lang.String host,
SshPublicKey recorded,
SshPublicKey actual)
Called by the
verifyHost method when the host key supplied
by the host does not match the current key recording in the known hosts
file. |
void |
onUnknownHost(java.lang.String host,
SshPublicKey key)
Called by the
verifyHost method when the host key supplied
is not recorded in the known_hosts file. |
void |
setVerificationEnabled(boolean enabled) |
allowedHosts, allowHost, isHostFileWriteable, removeAllowedHost, saveHostFile, toString, verifyHostpublic DialogKnownHostsKeyVerification(java.awt.Component parent)
throws InvalidHostFileException
parent - InvalidHostFileExceptionpublic DialogKnownHostsKeyVerification(java.awt.Component parent,
java.lang.String hostFileName)
throws InvalidHostFileException
parent - hostFileName - InvalidHostFileExceptionpublic void setVerificationEnabled(boolean enabled)
enabled - public void onDeniedHost(java.lang.String host)
throws TransportProtocolException
host - TransportProtocolExceptionpublic void onHostKeyMismatch(java.lang.String host,
SshPublicKey recorded,
SshPublicKey actual)
throws TransportProtocolException
AbstractKnownHostsKeyVerification
Called by the verifyHost method when the host key supplied
by the host does not match the current key recording in the known hosts
file.
onHostKeyMismatch in class AbstractKnownHostsKeyVerificationhost - recorded - actual - TransportProtocolExceptionpublic void onUnknownHost(java.lang.String host,
SshPublicKey key)
throws TransportProtocolException
AbstractKnownHostsKeyVerification
Called by the verifyHost method when the host key supplied
is not recorded in the known_hosts file.
onUnknownHost in class AbstractKnownHostsKeyVerificationhost - key - TransportProtocolExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.