public class BatchHostKeyValidator extends java.lang.Object implements SshHostKeyValidator
STATUS_HOST_CHANGED, STATUS_HOST_KEY_UNKNOWN, STATUS_HOST_KEY_VALID| Constructor and Description |
|---|
BatchHostKeyValidator(SshHostKeyManager keyManager)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
verifyHost(SshHostKey hostKey)
Validate the provided host key and return one of
SshHostKeyValidator.STATUS_HOST_CHANGED, SshHostKeyValidator.STATUS_HOST_KEY_UNKNOWN or
SshHostKeyValidator.STATUS_HOST_KEY_VALID. |
public BatchHostKeyValidator(SshHostKeyManager keyManager)
keyManager - key managerpublic int verifyHost(SshHostKey hostKey) throws SshException
SshHostKeyValidatorSshHostKeyValidator.STATUS_HOST_CHANGED, SshHostKeyValidator.STATUS_HOST_KEY_UNKNOWN or
SshHostKeyValidator.STATUS_HOST_KEY_VALID.verifyHost in interface SshHostKeyValidatorhostKey - keySshExceptionCopyright © 2018. All rights reserved.