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 TypeMethodDescriptionvoidonDeniedHost(String host) voidonHostKeyMismatch(String host, String recordedFingerprint, String actualFingerprint) voidonUnknownHost(String host, String fingerprint) voidsetVerificationEnabled(boolean enabled) Methods inherited from class com.sshtools.common.hosts.AbstractHostKeyVerification
allowedHosts, allowHost, deniedHosts, denyHost, endElement, isHostFileWriteable, removeAllowedHost, removeDeniedHost, saveHostFile, startElement, toString, verifyHostMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
onDeniedHostin classAbstractHostKeyVerification- Parameters:
host-- Throws:
TransportProtocolException
-
onHostKeyMismatch
public void onHostKeyMismatch(String host, String recordedFingerprint, String actualFingerprint) throws TransportProtocolException - Specified by:
onHostKeyMismatchin classAbstractHostKeyVerification- Parameters:
host-recordedFingerprint-actualFingerprint-- Throws:
TransportProtocolException
-
onUnknownHost
- Specified by:
onUnknownHostin classAbstractHostKeyVerification- Parameters:
host-fingerprint-- Throws:
TransportProtocolException
-