Class ConsoleKnownHostsVerifier
- java.lang.Object
-
- net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
-
- 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.BadHostEntry, OpenSSHKnownHosts.CommentEntry, OpenSSHKnownHosts.EntryFactory, OpenSSHKnownHosts.HostEntry, OpenSSHKnownHosts.KnownHostEntry, OpenSSHKnownHosts.Marker
-
-
Field Summary
-
Fields inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
entries, khFile, log
-
-
Constructor Summary
Constructors Constructor Description ConsoleKnownHostsVerifier(java.io.File khFile, java.io.Console console)
-
Method Summary
Modifier and Type Method Description protected booleanhostKeyChangedAction(java.lang.String hostname, java.security.PublicKey key)protected booleanhostKeyUnverifiableAction(java.lang.String hostname, java.security.PublicKey key)-
Methods inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
detectSSHDir, entries, findExistingAlgorithms, getFile, toString, verify, write, write
-
-
-
-
Method Detail
-
hostKeyUnverifiableAction
protected boolean hostKeyUnverifiableAction(java.lang.String hostname, java.security.PublicKey key)- Overrides:
hostKeyUnverifiableActionin classOpenSSHKnownHosts
-
hostKeyChangedAction
protected boolean hostKeyChangedAction(java.lang.String hostname, java.security.PublicKey key)- Overrides:
hostKeyChangedActionin classOpenSSHKnownHosts
-
-