Package com.sshtools.common.ssh2
Class KBIPrompt
java.lang.Object
com.sshtools.common.ssh2.KBIPrompt
- Direct Known Subclasses:
InstructionPrompt,NamePrompt
Represents a single prompt in the keyboard-interactive authentication process
- Author:
- Lee David Painter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanecho()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.voidsetResponse(String response) Set the user's response for this prompt.
-
Constructor Details
-
KBIPrompt
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
-