Package | Description |
---|---|
org.apache.sshd.client.keyverifier |
Modifier and Type | Method and Description |
---|---|
protected KnownHostsServerKeyVerifier.HostEntryPair |
KnownHostsServerKeyVerifier.findKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) |
Modifier and Type | Method and Description |
---|---|
protected Collection<KnownHostsServerKeyVerifier.HostEntryPair> |
KnownHostsServerKeyVerifier.getLoadedHostsEntries() |
protected List<KnownHostsServerKeyVerifier.HostEntryPair> |
DefaultKnownHostsServerKeyVerifier.reloadKnownHosts(ClientSession session,
Path file) |
protected List<KnownHostsServerKeyVerifier.HostEntryPair> |
KnownHostsServerKeyVerifier.reloadKnownHosts(ClientSession session,
Path file) |
Modifier and Type | Method and Description |
---|---|
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.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 and
KnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)
returned true . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
KnownHostsServerKeyVerifier.acceptKnownHostEntries(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) |
protected KnownHostsServerKeyVerifier.HostEntryPair |
KnownHostsServerKeyVerifier.findKnownHostEntry(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 when
KnownHostsServerKeyVerifier.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 file
|
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 and
KnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)
returned true . |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.