Class KBIPrompt

java.lang.Object
com.sshtools.common.ssh2.KBIPrompt
Direct Known Subclasses:
InstructionPrompt, NamePrompt

public class KBIPrompt extends Object
Represents a single prompt in the keyboard-interactive authentication process
Author:
Lee David Painter
  • Constructor Details

    • KBIPrompt

      public KBIPrompt(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