public interface SshHostKeyValidator
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_HOST_CHANGED
Host key is known, but is different.
|
static int |
STATUS_HOST_KEY_UNKNOWN
Host key is not known
|
static int |
STATUS_HOST_KEY_VALID
Host key is valid
|
| Modifier and Type | Method and Description |
|---|---|
int |
verifyHost(SshHostKey hostKey)
Validate the provided host key and return one of
STATUS_HOST_CHANGED, STATUS_HOST_KEY_UNKNOWN or
STATUS_HOST_KEY_VALID. |
static final int STATUS_HOST_KEY_VALID
verifyHost(SshHostKey),
Constant Field Valuesstatic final int STATUS_HOST_KEY_UNKNOWN
verifyHost(SshHostKey),
Constant Field Valuesstatic final int STATUS_HOST_CHANGED
STATUS_HOST_KEY_UNKNOWN and
STATUS_HOST_CHANGED.verifyHost(SshHostKey),
Constant Field Valuesint verifyHost(SshHostKey hostKey) throws SshException
STATUS_HOST_CHANGED, STATUS_HOST_KEY_UNKNOWN or
STATUS_HOST_KEY_VALID.hostKey - keySshExceptionCopyright © 2018. All rights reserved.