|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification
com.sshtools.common.hosts.DialogKnownHostsKeyVerification
public class DialogKnownHostsKeyVerification
Constructor Summary | |
---|---|
DialogKnownHostsKeyVerification(java.awt.Component parent)
Creates a new DialogKnownHostsKeyVerification object. |
|
DialogKnownHostsKeyVerification(java.awt.Component parent,
java.lang.String hostFileName)
Creates a new DialogKnownHostsKeyVerification object. |
Method Summary | |
---|---|
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)
|
Methods inherited from class com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification |
---|
allowedHosts, allowHost, isHostFileWriteable, removeAllowedHost, saveHostFile, toString, verifyHost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |