Package com.sshtools.common.hosts
Class DialogHostKeyVerification
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sshtools.common.hosts.AbstractHostKeyVerification
com.sshtools.common.hosts.DialogHostKeyVerification
- All Implemented Interfaces:
HostKeyVerification
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionDialogHostKeyVerification
(Component parent) Creates a new DialogHostKeyVerification object.DialogHostKeyVerification
(Component parent, String hostFileName) Creates a new DialogHostKeyVerification object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onDeniedHost
(String host) void
onHostKeyMismatch
(String host, String recordedFingerprint, String actualFingerprint) void
onUnknownHost
(String host, String fingerprint) void
setVerificationEnabled
(boolean enabled) Methods inherited from class com.sshtools.common.hosts.AbstractHostKeyVerification
allowedHosts, allowHost, deniedHosts, denyHost, endElement, isHostFileWriteable, removeAllowedHost, removeDeniedHost, saveHostFile, startElement, toString, verifyHost
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DialogHostKeyVerification
Creates a new DialogHostKeyVerification object.- Parameters:
parent
-- Throws:
InvalidHostFileException
-
DialogHostKeyVerification
public DialogHostKeyVerification(Component parent, String hostFileName) throws InvalidHostFileException Creates a new DialogHostKeyVerification object.- Parameters:
parent
-hostFileName
-- Throws:
InvalidHostFileException
-
-
Method Details
-
setVerificationEnabled
public void setVerificationEnabled(boolean enabled) - Parameters:
enabled
-
-
onDeniedHost
- Specified by:
onDeniedHost
in classAbstractHostKeyVerification
- Parameters:
host
-- Throws:
TransportProtocolException
-
onHostKeyMismatch
public void onHostKeyMismatch(String host, String recordedFingerprint, String actualFingerprint) throws TransportProtocolException - Specified by:
onHostKeyMismatch
in classAbstractHostKeyVerification
- Parameters:
host
-recordedFingerprint
-actualFingerprint
-- Throws:
TransportProtocolException
-
onUnknownHost
- Specified by:
onUnknownHost
in classAbstractHostKeyVerification
- Parameters:
host
-fingerprint
-- Throws:
TransportProtocolException
-