Class KeyboardInteractivePrompt

java.lang.Object
com.sshtools.client.KeyboardInteractivePrompt

public class KeyboardInteractivePrompt extends Object
Represents a keyboard-interactive prompt.
  • Constructor Details

    • KeyboardInteractivePrompt

      public KeyboardInteractivePrompt(String prompt, boolean echo)
      Creates a new KBIPrompt object.
      Parameters:
      prompt -
      echo -
  • Method Details

    • getPrompt

      public String 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

      public void setResponse(String response)
      Set the user's response for this prompt.
      Parameters:
      response -
    • getResponse

      public String getResponse()
      Get the user's response for this prompt.
      Returns:
      String