| Package | Description |
|---|---|
| org.apache.sshd.client | |
| org.apache.sshd.client.keyverifier | |
| org.apache.sshd.client.session |
| Modifier and Type | Field and Description |
|---|---|
static ServerKeyVerifier |
ClientBuilder.DEFAULT_SERVER_KEY_VERIFIER |
protected ServerKeyVerifier |
ClientBuilder.serverKeyVerifier |
| Modifier and Type | Method and Description |
|---|---|
ServerKeyVerifier |
SshClient.getServerKeyVerifier() |
ServerKeyVerifier |
ClientAuthenticationManager.getServerKeyVerifier()
Retrieve the server key verifier to be used to check the key when connecting
to an SSH server.
|
| Modifier and Type | Method and Description |
|---|---|
ClientBuilder |
ClientBuilder.serverKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
void |
SshClient.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
void |
ClientAuthenticationManager.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
| Modifier and Type | Class and Description |
|---|---|
class |
AcceptAllServerKeyVerifier
A ServerKeyVerifier that accepts all server keys.
|
class |
DefaultKnownHostsServerKeyVerifier
Monitors the
~/.ssh/known_hosts file of the user currently running
the client, updating and re-loading it if necessary. |
class |
DelegatingServerKeyVerifier
A
ServerKeyVerifier that delegates verification to the instance found in the ClientSession metadata
The verifier can be specified at the SshClient level, which may have connections to multiple hosts. |
class |
KnownHostsServerKeyVerifier |
class |
RejectAllServerKeyVerifier |
class |
RequiredServerKeyVerifier
A ServerKeyVerifier that accepts one server key (specified in the constructor)
|
class |
StaticServerKeyVerifier
Returns the same constant answer
true/false regardless |
| Modifier and Type | Method and Description |
|---|---|
ServerKeyVerifier |
KnownHostsServerKeyVerifier.getDelegateVerifier() |
| Constructor and Description |
|---|
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict,
File file) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict,
Path file,
LinkOption... options) |
KnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
Path file) |
KnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
Path file,
LinkOption... options) |
| Modifier and Type | Method and Description |
|---|---|
ServerKeyVerifier |
AbstractClientSession.getServerKeyVerifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractClientSession.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.