public class DumbHostKeyValidator extends java.lang.Object implements SshHostKeyValidator
SshHostKeyValidator that simply accepts any host key without
question or warning.STATUS_HOST_CHANGED, STATUS_HOST_KEY_UNKNOWN, STATUS_HOST_KEY_VALID| Constructor and Description |
|---|
DumbHostKeyValidator() |
| 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 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.