public class ICEJschUIInfo
extends java.lang.Object
implements com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo
The ICEJschUIInfo class gathers password information from a LoginInfoForm to provide the password to Jsch. It implements both the Jsch UserInfo and UIKeyboardInteractive interfaces. This class is only configured to work with single request keyboard interactive login and (and it fakes the interactive response at that...).
Constructor and Description |
---|
ICEJschUIInfo()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPassphrase()
(non-Javadoc)
|
java.lang.String |
getPassword()
(non-Javadoc)
|
boolean |
isReady()
This operation returns true if the ICEJschUIInfo is ready and false
otherwise.
|
java.util.ArrayList<java.lang.String> |
promptKeyboardInteractive(java.lang.String destination,
java.lang.String name,
java.lang.String instruction,
java.util.ArrayList<java.lang.String> prompt,
boolean... echo)
Re-directs to
promptKeyboardInteractive(String, String, String, String[], boolean[])
and has a different signature, although the functionality is the same. |
java.lang.String[] |
promptKeyboardInteractive(java.lang.String destination,
java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo)
This operation fakes out Jsch's keyboard interactive check and gives it
the stored password.
|
boolean |
promptPassphrase(java.lang.String message)
(non-Javadoc)
|
boolean |
promptPassword(java.lang.String message)
(non-Javadoc)
|
boolean |
promptYesNo(java.lang.String message)
(non-Javadoc)
|
void |
setForm(LoginInfoForm form)
This operation sets the LoginInfoForm that should be used by the
ICEJschUIInfo class to gather the password information.
|
void |
showMessage(java.lang.String message)
(non-Javadoc)
|
public void setForm(LoginInfoForm form)
This operation sets the LoginInfoForm that should be used by the ICEJschUIInfo class to gather the password information.
form
- public boolean isReady()
This operation returns true if the ICEJschUIInfo is ready and false otherwise. The decision is based on the presence or absence of the LoginInfoForm.
True if ready, false otherwise.
public java.util.ArrayList<java.lang.String> promptKeyboardInteractive(java.lang.String destination, java.lang.String name, java.lang.String instruction, java.util.ArrayList<java.lang.String> prompt, boolean... echo)
promptKeyboardInteractive(String, String, String, String[], boolean[])
and has a different signature, although the functionality is the same.public java.lang.String[] promptKeyboardInteractive(java.lang.String destination, java.lang.String name, java.lang.String instruction, java.lang.String[] prompt, boolean[] echo)
promptKeyboardInteractive
in interface com.jcraft.jsch.UIKeyboardInteractive
public java.lang.String getPassphrase()
getPassphrase
in interface com.jcraft.jsch.UserInfo
UserInfo.getPassphrase()
public java.lang.String getPassword()
getPassword
in interface com.jcraft.jsch.UserInfo
UserInfo.getPassword()
public boolean promptPassword(java.lang.String message)
promptPassword
in interface com.jcraft.jsch.UserInfo
UserInfo.promptPassword(String message)
public boolean promptPassphrase(java.lang.String message)
promptPassphrase
in interface com.jcraft.jsch.UserInfo
UserInfo.promptPassphrase(String message)
public boolean promptYesNo(java.lang.String message)
promptYesNo
in interface com.jcraft.jsch.UserInfo
UserInfo.promptYesNo(String message)
public void showMessage(java.lang.String message)
showMessage
in interface com.jcraft.jsch.UserInfo
UserInfo.showMessage(String message)