com.sshtools.common.hosts
Class ConsoleHostKeyVerification

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sshtools.common.hosts.AbstractHostKeyVerification
          extended by com.sshtools.common.hosts.ConsoleHostKeyVerification
All Implemented Interfaces:
HostKeyVerification, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ConsoleHostKeyVerification
extends AbstractHostKeyVerification

Version:
$Revision: 1.14 $
Author:
$author$

Constructor Summary
ConsoleHostKeyVerification()
          Creates a new ConsoleHostKeyVerification object.
ConsoleHostKeyVerification(java.lang.String hostFile)
          Creates a new ConsoleHostKeyVerification object.
 
Method Summary
 void onDeniedHost(java.lang.String hostname)
           
 void onHostKeyMismatch(java.lang.String host, java.lang.String fingerprint, java.lang.String actual)
           
 void onUnknownHost(java.lang.String host, java.lang.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
 

Constructor Detail

ConsoleHostKeyVerification

public ConsoleHostKeyVerification()
                           throws InvalidHostFileException
Creates a new ConsoleHostKeyVerification object.

Throws:
InvalidHostFileException

ConsoleHostKeyVerification

public ConsoleHostKeyVerification(java.lang.String hostFile)
                           throws InvalidHostFileException
Creates a new ConsoleHostKeyVerification object.

Parameters:
hostFile -
Throws:
InvalidHostFileException
Method Detail

onDeniedHost

public void onDeniedHost(java.lang.String hostname)
Specified by:
onDeniedHost in class AbstractHostKeyVerification
Parameters:
hostname -

onHostKeyMismatch

public void onHostKeyMismatch(java.lang.String host,
                              java.lang.String fingerprint,
                              java.lang.String actual)
Specified by:
onHostKeyMismatch in class AbstractHostKeyVerification
Parameters:
host -
fingerprint -
actual -

onUnknownHost

public void onUnknownHost(java.lang.String host,
                          java.lang.String fingerprint)
Specified by:
onUnknownHost in class AbstractHostKeyVerification
Parameters:
host -
fingerprint -


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.