Package org.eclipse.jsch.ui
Class UserInfoPrompter
java.lang.Object
org.eclipse.jsch.ui.UserInfoPrompter
- All Implemented Interfaces:
- com.jcraft.jsch.UIKeyboardInteractive,- com.jcraft.jsch.UserInfo
public class UserInfoPrompter
extends Object
implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
A 
UserInfo prompter implementation that can be used when connecting a
 Session.
 Clients may instantiate or subclass this class.
- Since:
- 1.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionUserInfoPrompter(com.jcraft.jsch.Session session) Create a prompter for the given session.
- 
Method SummaryModifier and TypeMethodDescriptioncom.jcraft.jsch.SessionReturn the session to which this prompter is assigned.String[]promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) booleanpromptPassphrase(String message) booleanpromptPassword(String message) booleanpromptYesNo(String question) voidsetPassphrase(String passphrase) Set the pass phrase to be used when connecting the session.voidsetPassword(String password) Set the password to be used when connecting the session.voidshowMessage(String message) 
- 
Constructor Details- 
UserInfoPrompterpublic UserInfoPrompter(com.jcraft.jsch.Session session) Create a prompter for the given session. This constructor will associate this prompter with the session usingSession.setUserInfo(UserInfo).- Parameters:
- session- the session
 
 
- 
- 
Method Details- 
getSessionpublic com.jcraft.jsch.Session getSession()Return the session to which this prompter is assigned.- Returns:
- the session to which this prompter is assigned
 
- 
getPassphrase- Specified by:
- getPassphrasein interface- com.jcraft.jsch.UserInfo
 
- 
getPassword- Specified by:
- getPasswordin interface- com.jcraft.jsch.UserInfo
 
- 
setPassphraseSet the pass phrase to be used when connecting the session. Returnnullif the pass phrase is not known.- Parameters:
- passphrase- the pass phrase to be used when connecting the session or- null
 
- 
setPasswordSet the password to be used when connecting the session. Returnnullif the password is not known.- Parameters:
- password- the password to be used when connecting the session or- null
 
- 
promptPassphrase- Specified by:
- promptPassphrasein interface- com.jcraft.jsch.UserInfo
 
- 
promptPassword- Specified by:
- promptPasswordin interface- com.jcraft.jsch.UserInfo
 
- 
promptKeyboardInteractivepublic String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) - Specified by:
- promptKeyboardInteractivein interface- com.jcraft.jsch.UIKeyboardInteractive
 
- 
promptYesNo- Specified by:
- promptYesNoin interface- com.jcraft.jsch.UserInfo
 
- 
showMessage- Specified by:
- showMessagein interface- com.jcraft.jsch.UserInfo
 
 
-