|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.ssh.SSHUserInfo
public class SSHUserInfo
Class containing information on an SSH user.
Constructor Summary | |
---|---|
SSHUserInfo()
Constructor for SSHUserInfo. |
|
SSHUserInfo(java.lang.String password,
boolean trustAllCertificates)
Constructor for SSHUserInfo. |
Method Summary | |
---|---|
java.lang.String |
getKeyfile()
Returns the keyfile. |
java.lang.String |
getName()
Gets the user name. |
java.lang.String |
getPassphrase()
Returns the passphrase. |
java.lang.String |
getPassphrase(java.lang.String message)
Gets the pass phrase of the user. |
java.lang.String |
getPassword()
Gets the user's password. |
boolean |
getTrust()
|
boolean |
prompt(java.lang.String str)
Prompts a string. |
java.lang.String[] |
promptKeyboardInteractive(java.lang.String destination,
java.lang.String name,
java.lang.String instruction,
java.lang.String[] prompt,
boolean[] echo)
Implementation of UIKeyboardInteractive#promptKeyboardInteractive. |
boolean |
promptPassphrase(java.lang.String message)
Implement the UserInfo interface. |
boolean |
promptPassword(java.lang.String passwordPrompt)
Implement the UserInfo interface. |
boolean |
promptYesNo(java.lang.String message)
Implement the UserInfo interface. |
boolean |
retry()
Indicates whether a retry was done. |
void |
setKeyfile(java.lang.String keyfile)
Sets the keyfile. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setPassphrase(java.lang.String passphrase)
Sets the passphrase. |
void |
setPassword(java.lang.String password)
Sets the password. |
void |
setTrust(boolean trust)
Sets the trust. |
void |
showMessage(java.lang.String message)
Implement the UserInfo interface (noop). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSHUserInfo()
public SSHUserInfo(java.lang.String password, boolean trustAllCertificates)
password
- the user's passwordtrustAllCertificates
- if true trust hosts whose identity is unknownMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getPassphrase(java.lang.String message)
message
- a message
public java.lang.String getPassword()
getPassword
in interface com.jcraft.jsch.UserInfo
public boolean prompt(java.lang.String str)
str
- the string
public boolean retry()
public void setName(java.lang.String name)
name
- The name to setpublic void setPassphrase(java.lang.String passphrase)
passphrase
- The passphrase to setpublic void setPassword(java.lang.String password)
password
- The password to setpublic void setTrust(boolean trust)
trust
- whether to trust or not.public boolean getTrust()
public java.lang.String getPassphrase()
getPassphrase
in interface com.jcraft.jsch.UserInfo
public java.lang.String getKeyfile()
public void setKeyfile(java.lang.String keyfile)
keyfile
- The keyfile to setpublic boolean promptPassphrase(java.lang.String message)
promptPassphrase
in interface com.jcraft.jsch.UserInfo
message
- ignored
public boolean promptPassword(java.lang.String passwordPrompt)
promptPassword
in interface com.jcraft.jsch.UserInfo
passwordPrompt
- ignored
public boolean promptYesNo(java.lang.String message)
promptYesNo
in interface com.jcraft.jsch.UserInfo
message
- ignored
public void showMessage(java.lang.String message)
showMessage
in interface com.jcraft.jsch.UserInfo
message
- ignoredpublic 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
destination
- not used.name
- not used.instruction
- not used.prompt
- the method checks if this is one in length.echo
- the method checks if the first element is false.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |