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
-
-
Constructor Summary
Constructors Constructor Description ConsoleKnownHostsVerifier(java.io.File khFile, java.io.Console console)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
hostKeyChangedAction(java.lang.String hostname, java.security.PublicKey key)
protected boolean
hostKeyUnverifiableAction(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
-
-
-
-
Field Detail
-
YES
private static final java.lang.String YES
- See Also:
- Constant Field Values
-
NO
private static final java.lang.String NO
- See Also:
- Constant Field Values
-
console
private final java.io.Console console
-
-
Method Detail
-
hostKeyUnverifiableAction
protected boolean hostKeyUnverifiableAction(java.lang.String hostname, java.security.PublicKey key)
- Overrides:
hostKeyUnverifiableAction
in classOpenSSHKnownHosts
-
hostKeyChangedAction
protected boolean hostKeyChangedAction(java.lang.String hostname, java.security.PublicKey key)
- Overrides:
hostKeyChangedAction
in classOpenSSHKnownHosts
-
-