public class RemoteConnectionUserInfo
extends java.lang.Object
implements com.jcraft.jsch.UIKeyboardInteractive, com.jcraft.jsch.UserInfo
Constructor and Description |
---|
RemoteConnectionUserInfo()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPassphrase() |
java.lang.String |
getPassword() |
java.lang.String[] |
promptKeyboardInteractive(java.lang.String destination,
java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo) |
boolean |
promptPassphrase(java.lang.String message) |
boolean |
promptPassword(java.lang.String message) |
boolean |
promptYesNo(java.lang.String message) |
void |
setPassword(java.lang.String password)
Set the user's input password
|
void |
setSelection(boolean selection)
Set the user's yes/no selection.
|
void |
showMessage(java.lang.String message) |
public RemoteConnectionUserInfo()
public void setPassword(java.lang.String password)
password
- The new password input by the userpublic void setSelection(boolean selection)
selection
- The user's selection. True will indicate a selection of "yes"
while false will indicate any other action (selecting no,
canceling the dialog, etc.)public java.lang.String getPassphrase()
getPassphrase
in interface com.jcraft.jsch.UserInfo
public java.lang.String getPassword()
getPassword
in interface com.jcraft.jsch.UserInfo
public boolean promptPassword(java.lang.String message)
promptPassword
in interface com.jcraft.jsch.UserInfo
public boolean promptPassphrase(java.lang.String message)
promptPassphrase
in interface com.jcraft.jsch.UserInfo
public boolean promptYesNo(java.lang.String message)
promptYesNo
in interface com.jcraft.jsch.UserInfo
public void showMessage(java.lang.String message)
showMessage
in interface com.jcraft.jsch.UserInfo
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