Package | Description |
---|---|
org.apache.sshd.client.config.hosts | |
org.apache.sshd.client.keyverifier |
Modifier and Type | Method and Description |
---|---|
static <E extends KnownHostEntry> |
KnownHostEntry.parseKnownHostEntry(E entry,
String data) |
Modifier and Type | Method and Description |
---|---|
static KnownHostEntry |
KnownHostEntry.parseKnownHostEntry(String line) |
Modifier and Type | Method and Description |
---|---|
static List<KnownHostEntry> |
KnownHostEntry.readKnownHostEntries(BufferedReader rdr)
Reads configuration entries
|
static List<KnownHostEntry> |
KnownHostEntry.readKnownHostEntries(InputStream inStream,
boolean okToClose) |
static List<KnownHostEntry> |
KnownHostEntry.readKnownHostEntries(Path path,
OpenOption... options) |
static List<KnownHostEntry> |
KnownHostEntry.readKnownHostEntries(Reader rdr,
boolean okToClose) |
static List<KnownHostEntry> |
KnownHostEntry.readKnownHostEntries(URL url) |
Modifier and Type | Method and Description |
---|---|
KnownHostEntry |
KnownHostsServerKeyVerifier.HostEntryPair.getHostEntry() |
protected KnownHostEntry |
KnownHostsServerKeyVerifier.prepareKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Invoked by
KnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection) in order to
generate the host entry to be written |
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
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
KnownHostsServerKeyVerifier.acceptKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
KnownHostEntry entry)
Invoked after known host entry located and keys match - by default checks that entry has not been revoked
|
boolean |
KnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
PublicKey expected,
PublicKey actual) |
boolean |
ModifiedServerKeyAcceptor.acceptModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
PublicKey expected,
PublicKey actual)
Invoked when a matching known host key was found but it does not match the presented one.
|
protected String |
KnownHostsServerKeyVerifier.prepareModifiedServerKeyLine(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
String curLine,
PublicKey expected,
PublicKey actual)
Invoked by
KnownHostsServerKeyVerifier.updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path, Collection) in
order to prepare the replacement - by default it replaces the key part with the new one |
protected PublicKey |
KnownHostsServerKeyVerifier.resolveHostKey(ClientSession session,
KnownHostEntry entry,
PublicKeyEntryResolver resolver)
Recover the associated public key from a known host entry
|
void |
KnownHostsServerKeyVerifier.HostEntryPair.setHostEntry(KnownHostEntry hostEntry) |
Constructor and Description |
---|
HostEntryPair(KnownHostEntry entry,
PublicKey key) |
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.