Class SSHAuthPrompt

java.lang.Object
com.enterprisedt.net.ftp.ssh.SSHAuthPrompt
Direct Known Subclasses:
SSHPasswordPrompt

public class SSHAuthPrompt extends Object
Represents an SSH keyboard-interactive prompt. The SSH server sends a prompt string which the client must respond to. Instances of this class are supplied to the server so that the prompt is automatically answered with the required response
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • SSHAuthPrompt

      public SSHAuthPrompt(String prompt, String response)
      Creates a new KBIPrompt object.
      Parameters:
      prompt - prompt string from server, e.g. 'Password:'
      response - response to this prompt
  • Method Details

    • getPrompt

      public String getPrompt()
      Get the prompt string
      Returns:
      string
    • getResponse

      public String getResponse()
      Get the response to the prompt
      Returns:
      string