Uses of Class
org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair
Packages that use KnownHostsServerKeyVerifier.HostEntryPair
-
Uses of KnownHostsServerKeyVerifier.HostEntryPair in org.apache.sshd.client.keyverifier
Fields in org.apache.sshd.client.keyverifier with type parameters of type KnownHostsServerKeyVerifier.HostEntryPairModifier and TypeFieldDescriptionprivate final AtomicReference
<Supplier<? extends Collection<KnownHostsServerKeyVerifier.HostEntryPair>>> KnownHostsServerKeyVerifier.keysSupplier
Methods in org.apache.sshd.client.keyverifier that return types with arguments of type KnownHostsServerKeyVerifier.HostEntryPairModifier and TypeMethodDescriptionprotected List
<KnownHostsServerKeyVerifier.HostEntryPair> KnownHostsServerKeyVerifier.findKnownHostEntries
(ClientSession clientSession, SocketAddress remoteAddress, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) KnownHostsServerKeyVerifier.getKnownHostSupplier
(ClientSession clientSession, Path file) protected List
<KnownHostsServerKeyVerifier.HostEntryPair> DefaultKnownHostsServerKeyVerifier.reloadKnownHosts
(ClientSession session, Path file) protected List
<KnownHostsServerKeyVerifier.HostEntryPair> KnownHostsServerKeyVerifier.reloadKnownHosts
(ClientSession session, Path file) Methods in org.apache.sshd.client.keyverifier with parameters of type KnownHostsServerKeyVerifier.HostEntryPairModifier and TypeMethodDescriptionprotected void
KnownHostsServerKeyVerifier.handleModifiedServerKeyUpdateFailure
(ClientSession clientSession, SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, PublicKey serverKey, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, Throwable reason) Invoked if#updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path)
throws an exception.protected void
KnownHostsServerKeyVerifier.updateModifiedServerKey
(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, KnownHostsServerKeyVerifier.HostEntryPair match) protected void
KnownHostsServerKeyVerifier.updateModifiedServerKey
(ClientSession clientSession, SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, PublicKey actual, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) Invoked if a matching host entry was found, but the key did not match andKnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)
returnedtrue
.Method parameters in org.apache.sshd.client.keyverifier with type arguments of type KnownHostsServerKeyVerifier.HostEntryPairModifier and TypeMethodDescriptionprotected boolean
KnownHostsServerKeyVerifier.acceptKnownHostEntries
(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) protected List
<KnownHostsServerKeyVerifier.HostEntryPair> KnownHostsServerKeyVerifier.findKnownHostEntries
(ClientSession clientSession, SocketAddress remoteAddress, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) protected void
KnownHostsServerKeyVerifier.handleKnownHostsFileUpdateFailure
(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, Throwable reason) Invoked whenKnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection)
fails - by default just issues a warning.protected void
KnownHostsServerKeyVerifier.handleModifiedServerKeyUpdateFailure
(ClientSession clientSession, SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, PublicKey serverKey, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, Throwable reason) Invoked if#updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path)
throws an exception.protected void
KnownHostsServerKeyVerifier.setLoadedHostsEntries
(Collection<KnownHostsServerKeyVerifier.HostEntryPair> keys) protected KnownHostEntry
KnownHostsServerKeyVerifier.updateKnownHostsFile
(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) Invoked if a new previously unknown host key has been accepted - by default appends a new entry at the end of the currently monitored known hosts fileprotected void
KnownHostsServerKeyVerifier.updateModifiedServerKey
(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, KnownHostsServerKeyVerifier.HostEntryPair match) protected void
KnownHostsServerKeyVerifier.updateModifiedServerKey
(ClientSession clientSession, SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, PublicKey actual, Path file, Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) Invoked if a matching host entry was found, but the key did not match andKnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)
returnedtrue
.