Package com.sshtools.client
Class PasswordOverKeyboardInteractiveCallback
java.lang.Object
com.sshtools.client.PasswordOverKeyboardInteractiveCallback
- All Implemented Interfaces:
KeyboardInteractiveCallback
public class PasswordOverKeyboardInteractiveCallback
extends Object
implements KeyboardInteractiveCallback
Implements a keyboard-interactive callback that answers a single password prompt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(com.sshtools.common.ssh.SshConnection con) void
showPrompts
(String name, String instruction, KeyboardInteractivePrompt[] prompts, KeyboardInteractivePromptCompletor completor) Called by the keyboard-interactive authentication mechanism when the server requests information from the user.
-
Constructor Details
-
PasswordOverKeyboardInteractiveCallback
-
-
Method Details
-
init
public void init(com.sshtools.common.ssh.SshConnection con) - Specified by:
init
in interfaceKeyboardInteractiveCallback
-
showPrompts
public void showPrompts(String name, String instruction, KeyboardInteractivePrompt[] prompts, KeyboardInteractivePromptCompletor completor) Called by the keyboard-interactive authentication mechanism when the server requests information from the user. Each prompt should be displayed to the user with their response recorded within the prompt object.- Specified by:
showPrompts
in interfaceKeyboardInteractiveCallback
- Parameters:
name
-instruction
-prompts
-completor
-
-