|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jsch.ui.UserInfoPrompter
public class UserInfoPrompter
A UserInfo prompter implementation that can be used when connecting a
Session.
Clients may instantiate or subclass this class.
IJSchService.createSession(String, int, String),
IJSchService.connect(Session, int,
org.eclipse.core.runtime.IProgressMonitor)| Constructor Summary | |
|---|---|
UserInfoPrompter(com.jcraft.jsch.Session session)
Create a prompter for the given session. |
|
| Method Summary | |
|---|---|
String |
getPassphrase()
|
String |
getPassword()
|
com.jcraft.jsch.Session |
getSession()
Return the session to which this prompter is assigned. |
String[] |
promptKeyboardInteractive(String destination,
String name,
String instruction,
String[] prompt,
boolean[] echo)
|
boolean |
promptPassphrase(String message)
|
boolean |
promptPassword(String message)
|
boolean |
promptYesNo(String question)
|
void |
setPassphrase(String passphrase)
Set the pass phrase to be used when connecting the session. |
void |
setPassword(String password)
Set the password to be used when connecting the session. |
void |
showMessage(String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserInfoPrompter(com.jcraft.jsch.Session session)
Session.setUserInfo(UserInfo).
session - the session| Method Detail |
|---|
public com.jcraft.jsch.Session getSession()
public String getPassphrase()
getPassphrase in interface com.jcraft.jsch.UserInfopublic String getPassword()
getPassword in interface com.jcraft.jsch.UserInfopublic void setPassphrase(String passphrase)
null if the pass phrase is not known.
passphrase - the pass phrase to be used when connecting the session or
nullpublic void setPassword(String password)
null if the password is not known.
password - the password to be used when connecting the session or
nullpublic boolean promptPassphrase(String message)
promptPassphrase in interface com.jcraft.jsch.UserInfopublic boolean promptPassword(String message)
promptPassword in interface com.jcraft.jsch.UserInfo
public String[] promptKeyboardInteractive(String destination,
String name,
String instruction,
String[] prompt,
boolean[] echo)
promptKeyboardInteractive in interface com.jcraft.jsch.UIKeyboardInteractivepublic boolean promptYesNo(String question)
promptYesNo in interface com.jcraft.jsch.UserInfopublic void showMessage(String message)
showMessage in interface com.jcraft.jsch.UserInfo
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.