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 TypeMethodDescriptionvoidinit(SshConnection con) voidshowPrompts(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
- Specified by:
initin 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:
showPromptsin interfaceKeyboardInteractiveCallback- Parameters:
name-instruction-prompts-completor-
-