Package com.enterprisedt.net.ftp.ssh
Class SSHAuthPrompt
java.lang.Object
com.enterprisedt.net.ftp.ssh.SSHAuthPrompt
- Direct Known Subclasses:
SSHPasswordPrompt
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 Summary
ConstructorsConstructorDescriptionSSHAuthPrompt(String prompt, String response) Creates a new KBIPrompt object. -
Method Summary
Modifier and TypeMethodDescriptionGet the prompt stringGet the response to the prompt
-
Constructor Details
-
SSHAuthPrompt
Creates a new KBIPrompt object.- Parameters:
prompt- prompt string from server, e.g. 'Password:'response- response to this prompt
-
-
Method Details
-
getPrompt
Get the prompt string- Returns:
- string
-
getResponse
Get the response to the prompt- Returns:
- string
-