edu.harvard.mgh.purcell.gCLINE.data
Class Record.myHostKeyValidator
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sshtools.common.hosts.AbstractHostKeyVerification
edu.harvard.mgh.purcell.gCLINE.data.Record.myHostKeyValidator
- All Implemented Interfaces:
- com.sshtools.j2ssh.transport.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 com.sshtools.common.hosts.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
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 |
Record.myHostKeyValidator
public Record.myHostKeyValidator()
throws com.sshtools.j2ssh.transport.InvalidHostFileException
- Throws:
com.sshtools.j2ssh.transport.InvalidHostFileException
onDeniedHost
public void onDeniedHost(java.lang.String host)
throws com.sshtools.j2ssh.transport.TransportProtocolException
- Specified by:
onDeniedHost
in class com.sshtools.common.hosts.AbstractHostKeyVerification
- Throws:
com.sshtools.j2ssh.transport.TransportProtocolException
onHostKeyMismatch
public void onHostKeyMismatch(java.lang.String host,
java.lang.String allowedHostKey,
java.lang.String actualHostKey)
throws com.sshtools.j2ssh.transport.TransportProtocolException
- Specified by:
onHostKeyMismatch
in class com.sshtools.common.hosts.AbstractHostKeyVerification
- Throws:
com.sshtools.j2ssh.transport.TransportProtocolException
onUnknownHost
public void onUnknownHost(java.lang.String host,
java.lang.String hostKeyFingerprint)
throws com.sshtools.j2ssh.transport.TransportProtocolException
- Specified by:
onUnknownHost
in class com.sshtools.common.hosts.AbstractHostKeyVerification
- Throws:
com.sshtools.j2ssh.transport.TransportProtocolException