public class SSHIdentity extends Object implements com.jcraft.jsch.UserInfo
| Constructor and Description |
|---|
SSHIdentity()
create new instance.
|
SSHIdentity(String sUser,
String sPassword,
String sPassphrase,
String sKeyFile)
create new instance with parameter.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyFileName() |
String |
getPassphrase() |
String |
getPassword() |
String |
getUser() |
boolean |
needsSudo() |
boolean |
promptPassphrase(String sMessage) |
boolean |
promptPassword(String sMessage) |
boolean |
promptYesNo(String sMessage) |
void |
sayYesToAllQuestions(boolean bYes) |
void |
setKeyFileName(String sFile) |
void |
setNeedsSudo(boolean bNeeds) |
void |
setPassphrase(String sPassphrase) |
void |
setPassword(String sPassword) |
void |
setUser(String sUser) |
void |
showMessage(String sMessage) |
public void sayYesToAllQuestions(boolean bYes)
throws Exception
Exceptionpublic String getPassword()
getPassword in interface com.jcraft.jsch.UserInfopublic String getPassphrase()
getPassphrase in interface com.jcraft.jsch.UserInfopublic boolean promptPassword(String sMessage)
promptPassword in interface com.jcraft.jsch.UserInfopublic boolean promptPassphrase(String sMessage)
promptPassphrase in interface com.jcraft.jsch.UserInfopublic boolean promptYesNo(String sMessage)
promptYesNo in interface com.jcraft.jsch.UserInfopublic void showMessage(String sMessage)
showMessage in interface com.jcraft.jsch.UserInfoCopyright © 2016 as-development.net. All rights reserved.