org.apache.tools.ant.taskdefs.optional.ssh
public class SSHUserInfo extends Object implements UserInfo
Constructor Summary | |
---|---|
SSHUserInfo() | |
SSHUserInfo(String password, boolean trustAllCertificates) |
Method Summary | |
---|---|
String | getKeyfile()
Returns the keyfile. |
String | getName()
Gets the user name. |
String | getPassphrase(String message)
Gets the pass phrase of the user. |
String | getPassphrase()
Returns the passphrase. |
String | getPassword()
Gets the user's password. |
boolean | getTrust() |
boolean | prompt(String str)
Prompts a string. |
boolean | promptPassphrase(String message) |
boolean | promptPassword(String passwordPrompt) |
boolean | promptYesNo(String message) |
boolean | retry()
Indicates whether a retry was done. |
void | setKeyfile(String keyfile)
Sets the keyfile. |
void | setName(String name)
Sets the name. |
void | setPassphrase(String passphrase)
Sets the passphrase. |
void | setPassword(String password)
Sets the password. |
void | setTrust(boolean trust)
Sets the trust. |
void | showMessage(String message) |
Returns: String
Returns: the user name
Parameters: message a message
Returns: the passphrase
Returns: String
Returns: the user's password
Returns: whether to trust or not.
Parameters: str the string
Returns: whether the string was prompted
Returns: whether a retry was done
Parameters: keyfile The keyfile to set
Parameters: name The name to set
Parameters: passphrase The passphrase to set
Parameters: password The password to set
Parameters: trust whether to trust or not.