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, verifyHost
public DialogKnownHostsKeyVerification(java.awt.Component parent) throws InvalidHostFileException
parent
- InvalidHostFileException
public DialogKnownHostsKeyVerification(java.awt.Component parent, java.lang.String hostFileName) throws InvalidHostFileException
parent
- hostFileName
- InvalidHostFileException
public void setVerificationEnabled(boolean enabled)
enabled
- public void onDeniedHost(java.lang.String host) throws TransportProtocolException
host
- TransportProtocolException
public 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 AbstractKnownHostsKeyVerification
host
- recorded
- actual
- TransportProtocolException
public 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 AbstractKnownHostsKeyVerification
host
- key
- TransportProtocolException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.