public class ConsoleKeyboardInteractiveAuthenticator extends java.lang.Object implements SshKeyboardInteractiveAuthenticator
| Constructor and Description |
|---|
ConsoleKeyboardInteractiveAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
challenge(java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo)
Challenge the user with a number of questions.
|
java.lang.String |
getTypeName()
Get the name of this authenticator (e.g "password", "publickey" etc).
|
public ConsoleKeyboardInteractiveAuthenticator()
public java.lang.String[] challenge(java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo)
SshKeyboardInteractiveAuthenticatorchallenge in interface SshKeyboardInteractiveAuthenticatorname - name of challengeinstruction - textual instructionsprompt - list of prompts to displayecho - whether to echo each prompt (number of elements will match
'prompt' argument)null if the user cancelledpublic java.lang.String getTypeName()
SshAuthenticatorgetTypeName in interface SshAuthenticatorCopyright © 2018. All rights reserved.