|
Eclipse Platform Release 3.3 |
|||||||||
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 | |
---|---|
java.lang.String |
getPassphrase()
|
java.lang.String |
getPassword()
|
com.jcraft.jsch.Session |
getSession()
Return the session to which this prompter is assigned. |
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 question)
|
void |
setPassphrase(java.lang.String passphrase)
Set the pass phrase to be used when connecting the session. |
void |
setPassword(java.lang.String password)
Set the password to be used when connecting the session. |
void |
showMessage(java.lang.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 sessionMethod Detail |
---|
public com.jcraft.jsch.Session getSession()
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 void setPassphrase(java.lang.String passphrase)
null
if the pass phrase is not known.
passphrase
- the pass phrase to be used when connecting the session or
null
public void setPassword(java.lang.String password)
null
if the password is not known.
password
- the password to be used when connecting the session or
null
public boolean promptPassphrase(java.lang.String message)
promptPassphrase
in interface com.jcraft.jsch.UserInfo
public boolean promptPassword(java.lang.String message)
promptPassword
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
public boolean promptYesNo(java.lang.String question)
promptYesNo
in interface com.jcraft.jsch.UserInfo
public void showMessage(java.lang.String message)
showMessage
in interface com.jcraft.jsch.UserInfo
|
Eclipse Platform Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.