edu.harvard.mgh.purcell.gCLINE.data
Class Record.myHostKeyValidator

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sshtools.common.hosts.AbstractHostKeyVerification
          extended by edu.harvard.mgh.purcell.gCLINE.data.Record.myHostKeyValidator
All Implemented Interfaces:
HostKeyVerification, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
Record

private static class Record.myHostKeyValidator
extends AbstractHostKeyVerification

This is a host key validator that automatically accepts any host key sent but doesn't actually save any of them.

Author:
Kathe Todd-Brown

Constructor Summary
Record.myHostKeyValidator()
           
 
Method Summary
 void onDeniedHost(java.lang.String host)
           
 void onHostKeyMismatch(java.lang.String host, java.lang.String allowedHostKey, java.lang.String actualHostKey)
           
 void onUnknownHost(java.lang.String host, java.lang.String hostKeyFingerprint)
           
 
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

Record.myHostKeyValidator

public Record.myHostKeyValidator()
                          throws InvalidHostFileException
Throws:
InvalidHostFileException
Method Detail

onDeniedHost

public void onDeniedHost(java.lang.String host)
                  throws TransportProtocolException
Specified by:
onDeniedHost in class AbstractHostKeyVerification
Throws:
TransportProtocolException

onHostKeyMismatch

public void onHostKeyMismatch(java.lang.String host,
                              java.lang.String allowedHostKey,
                              java.lang.String actualHostKey)
                       throws TransportProtocolException
Specified by:
onHostKeyMismatch in class AbstractHostKeyVerification
Throws:
TransportProtocolException

onUnknownHost

public void onUnknownHost(java.lang.String host,
                          java.lang.String hostKeyFingerprint)
                   throws TransportProtocolException
Specified by:
onUnknownHost in class AbstractHostKeyVerification
Throws:
TransportProtocolException