com.enterprisedt.net.ftp.ssh
Class SSHAuthPrompt

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

public class SSHAuthPrompt
extends java.lang.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: 1.1 $
Author:
Bruce Blackshaw

Constructor Summary
SSHAuthPrompt(java.lang.String prompt, java.lang.String response)
          Creates a new KBIPrompt object.
 
Method Summary
 java.lang.String getPrompt()
          Get the prompt string
 java.lang.String getResponse()
          Get the response to the prompt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHAuthPrompt

public SSHAuthPrompt(java.lang.String prompt,
                     java.lang.String response)
Creates a new KBIPrompt object.

Parameters:
prompt - prompt string from server, e.g. 'Password:'
response - response to this prompt
Method Detail

getPrompt

public java.lang.String getPrompt()
Get the prompt string

Returns:
string

getResponse

public java.lang.String getResponse()
Get the response to the prompt

Returns:
string


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.