Package com.sshtools.common.hosts
Class ConsoleHostKeyVerification
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sshtools.common.hosts.AbstractHostKeyVerification
com.sshtools.common.hosts.ConsoleHostKeyVerification
- All Implemented Interfaces:
HostKeyVerification
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Version:
- $Revision: 1.14 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ConsoleHostKeyVerification object.ConsoleHostKeyVerification
(String hostFile) Creates a new ConsoleHostKeyVerification object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onDeniedHost
(String hostname) void
onHostKeyMismatch
(String host, String fingerprint, String actual) void
onUnknownHost
(String host, String fingerprint) 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
-
ConsoleHostKeyVerification
Creates a new ConsoleHostKeyVerification object.- Throws:
InvalidHostFileException
-
ConsoleHostKeyVerification
Creates a new ConsoleHostKeyVerification object.- Parameters:
hostFile
-- Throws:
InvalidHostFileException
-
-
Method Details
-
onDeniedHost
- Specified by:
onDeniedHost
in classAbstractHostKeyVerification
- Parameters:
hostname
-
-
onHostKeyMismatch
- Specified by:
onHostKeyMismatch
in classAbstractHostKeyVerification
- Parameters:
host
-fingerprint
-actual
-
-
onUnknownHost
- Specified by:
onUnknownHost
in classAbstractHostKeyVerification
- Parameters:
host
-fingerprint
-
-