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 TypeMethodDescriptionvoidonDeniedHost(String hostname) voidonHostKeyMismatch(String host, String fingerprint, String actual) voidonUnknownHost(String host, String fingerprint) 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
-
ConsoleHostKeyVerification
Creates a new ConsoleHostKeyVerification object.- Throws:
InvalidHostFileException
-
ConsoleHostKeyVerification
Creates a new ConsoleHostKeyVerification object.- Parameters:
hostFile-- Throws:
InvalidHostFileException
-
-
Method Details
-
onDeniedHost
- Specified by:
onDeniedHostin classAbstractHostKeyVerification- Parameters:
hostname-
-
onHostKeyMismatch
- Specified by:
onHostKeyMismatchin classAbstractHostKeyVerification- Parameters:
host-fingerprint-actual-
-
onUnknownHost
- Specified by:
onUnknownHostin classAbstractHostKeyVerification- Parameters:
host-fingerprint-
-