public class PromptingKeyValidator extends java.lang.Object implements SshHostKeyValidator
SshHostKeyValidator implementation that displays it's confirmations
of keys via Maven's InteractiveUserInfo. If none is supplied, the
prompt will be sent directly to the console.STATUS_HOST_CHANGED, STATUS_HOST_KEY_UNKNOWN, STATUS_HOST_KEY_VALID| Constructor and Description |
|---|
PromptingKeyValidator(org.apache.maven.wagon.providers.ssh.interactive.InteractiveUserInfo interactiveUserInfo,
SshHostKeyManager mgr)
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 PromptingKeyValidator(org.apache.maven.wagon.providers.ssh.interactive.InteractiveUserInfo interactiveUserInfo,
SshHostKeyManager mgr)
interactiveUserInfo - interactive user infomgr - SSHAPI 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.