Uses of Class
org.apache.sshd.client.config.hosts.KnownHostEntry
-
Packages that use KnownHostEntry Package Description org.apache.sshd.client.config.hosts org.apache.sshd.client.keyverifier -
-
Uses of KnownHostEntry in org.apache.sshd.client.config.hosts
Methods in org.apache.sshd.client.config.hosts with type parameters of type KnownHostEntry Modifier and Type Method Description static <E extends KnownHostEntry>
EKnownHostEntry. parseKnownHostEntry(E entry, java.lang.String data)
Methods in org.apache.sshd.client.config.hosts that return KnownHostEntry Modifier and Type Method Description static KnownHostEntry
KnownHostEntry. parseKnownHostEntry(java.lang.String line)
Methods in org.apache.sshd.client.config.hosts that return types with arguments of type KnownHostEntry Modifier and Type Method Description static java.util.List<KnownHostEntry>
KnownHostEntry. readKnownHostEntries(java.io.BufferedReader rdr)
Reads configuration entriesstatic java.util.List<KnownHostEntry>
KnownHostEntry. readKnownHostEntries(java.io.InputStream inStream, boolean okToClose)
static java.util.List<KnownHostEntry>
KnownHostEntry. readKnownHostEntries(java.io.Reader rdr, boolean okToClose)
static java.util.List<KnownHostEntry>
KnownHostEntry. readKnownHostEntries(java.net.URL url)
static java.util.List<KnownHostEntry>
KnownHostEntry. readKnownHostEntries(java.nio.file.Path path, java.nio.file.OpenOption... options)
-
Uses of KnownHostEntry in org.apache.sshd.client.keyverifier
Fields in org.apache.sshd.client.keyverifier declared as KnownHostEntry Modifier and Type Field Description private KnownHostEntry
KnownHostsServerKeyVerifier.HostEntryPair. hostEntry
Methods in org.apache.sshd.client.keyverifier that return KnownHostEntry Modifier and Type Method Description KnownHostEntry
KnownHostsServerKeyVerifier.HostEntryPair. getHostEntry()
protected KnownHostEntry
KnownHostsServerKeyVerifier. prepareKnownHostEntry(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)
Invoked byKnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection)
in order to generate the host entry to be writtenprotected KnownHostEntry
KnownHostsServerKeyVerifier. updateKnownHostsFile(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, java.nio.file.Path file, java.util.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 fileMethods in org.apache.sshd.client.keyverifier with parameters of type KnownHostEntry Modifier and Type Method Description boolean
KnownHostsServerKeyVerifier. acceptModifiedServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.security.PublicKey expected, java.security.PublicKey actual)
boolean
ModifiedServerKeyAcceptor. acceptModifiedServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.security.PublicKey expected, java.security.PublicKey actual)
Invoked when a matching known host key was found but it does not match the presented one.protected java.lang.String
KnownHostsServerKeyVerifier. prepareModifiedServerKeyLine(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.lang.String curLine, java.security.PublicKey expected, java.security.PublicKey actual)
Invoked byKnownHostsServerKeyVerifier.updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path, Collection)
in order to prepare the replacement - by default it replaces the key part with the new oneprotected java.security.PublicKey
KnownHostsServerKeyVerifier. resolveHostKey(ClientSession session, KnownHostEntry entry, PublicKeyEntryResolver resolver)
Recover the associated public key from a known host entryvoid
KnownHostsServerKeyVerifier.HostEntryPair. setHostEntry(KnownHostEntry hostEntry)
Constructors in org.apache.sshd.client.keyverifier with parameters of type KnownHostEntry Constructor Description HostEntryPair(KnownHostEntry entry, java.security.PublicKey key)
-