net.schmizz.sshj.transport.verification
Class ConsoleKnownHostsVerifier

java.lang.Object
  extended by net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
      extended by net.schmizz.sshj.transport.verification.ConsoleKnownHostsVerifier
All Implemented Interfaces:
HostKeyVerifier

public class ConsoleKnownHostsVerifier
extends OpenSSHKnownHosts


Nested Class Summary
 
Nested classes/interfaces inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
OpenSSHKnownHosts.AbstractEntry, OpenSSHKnownHosts.CommentEntry, OpenSSHKnownHosts.EntryFactory, OpenSSHKnownHosts.HashedEntry, OpenSSHKnownHosts.HostEntry, OpenSSHKnownHosts.Marker, OpenSSHKnownHosts.SimpleEntry
 
Field Summary
 
Fields inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
entries, khFile, log
 
Constructor Summary
ConsoleKnownHostsVerifier(File khFile, Console console)
           
 
Method Summary
protected  boolean hostKeyChangedAction(OpenSSHKnownHosts.HostEntry entry, String hostname, PublicKey key)
           
protected  boolean hostKeyUnverifiableAction(String hostname, PublicKey key)
           
 
Methods inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
detectSSHDir, entries, getFile, verify, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleKnownHostsVerifier

public ConsoleKnownHostsVerifier(File khFile,
                                 Console console)
                          throws IOException
Throws:
IOException
Method Detail

hostKeyUnverifiableAction

protected boolean hostKeyUnverifiableAction(String hostname,
                                            PublicKey key)
Overrides:
hostKeyUnverifiableAction in class OpenSSHKnownHosts

hostKeyChangedAction

protected boolean hostKeyChangedAction(OpenSSHKnownHosts.HostEntry entry,
                                       String hostname,
                                       PublicKey key)
Overrides:
hostKeyChangedAction in class OpenSSHKnownHosts


Copyright © 2009-2012. All Rights Reserved.