Class ConsoleKnownHostsVerifier
java.lang.Object
net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
net.schmizz.sshj.transport.verification.ConsoleKnownHostsVerifier
- All Implemented Interfaces:
HostKeyVerifier
-
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
FieldsModifier and TypeFieldDescriptionprivate final Console
private static final String
private static final String
Fields inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
entries, khFile, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
hostKeyChangedAction
(String hostname, PublicKey key) protected boolean
hostKeyUnverifiableAction
(String hostname, PublicKey key) Methods inherited from class net.schmizz.sshj.transport.verification.OpenSSHKnownHosts
detectSSHDir, entries, findExistingAlgorithms, getFile, toString, verify, write, write
-
Field Details
-
YES
- See Also:
-
NO
- See Also:
-
console
-
-
Constructor Details
-
ConsoleKnownHostsVerifier
- Throws:
IOException
-
-
Method Details
-
hostKeyUnverifiableAction
- Overrides:
hostKeyUnverifiableAction
in classOpenSSHKnownHosts
-
hostKeyChangedAction
- Overrides:
hostKeyChangedAction
in classOpenSSHKnownHosts
-