Package com.sshtools.client
Class KeyboardInteractivePrompt
java.lang.Object
com.sshtools.client.KeyboardInteractivePrompt
Represents a keyboard-interactive prompt.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyboardInteractivePrompt
(String prompt, boolean echo) Creates a new KBIPrompt object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
echo()
true if the user response should be echo'd to the display, otherwise false.Get the prompt message to display to the userGet the user's response for this prompt.void
setResponse
(String response) Set the user's response for this prompt.
-
Constructor Details
-
KeyboardInteractivePrompt
Creates a new KBIPrompt object.- Parameters:
prompt
-echo
-
-
-
Method Details
-
getPrompt
Get the prompt message to display to the user- Returns:
- String
-
echo
public boolean echo()true if the user response should be echo'd to the display, otherwise false.- Returns:
- boolean
-
setResponse
Set the user's response for this prompt.- Parameters:
response
-
-
getResponse
Get the user's response for this prompt.- Returns:
- String
-