org.apache.tools.ant.taskdefs.optional.ssh
Class SSHUserInfo
java.lang.Object
org.apache.tools.ant.taskdefs.optional.ssh.SSHUserInfo
- UserInfo
public class SSHUserInfo
extends java.lang.Object
implements UserInfo
SSHUserInfo
public SSHUserInfo()
SSHUserInfo
public SSHUserInfo(String password,
boolean trustAllCertificates)
getKeyfile
public String getKeyfile()
Returns the keyfile.
getName
public String getName()
Gets the user name.
getPassphrase
public String getPassphrase()
Returns the passphrase.
getPassphrase
public String getPassphrase(String message)
Gets the pass phrase of the user.
getPassword
public String getPassword()
Gets the user's password.
getTrust
public boolean getTrust()
prompt
public boolean prompt(String str)
Prompts a string.
- whether the string was prompted
promptPassphrase
public boolean promptPassphrase(String message)
promptPassword
public boolean promptPassword(String passwordPrompt)
promptYesNo
public boolean promptYesNo(String message)
retry
public boolean retry()
Indicates whether a retry was done.
setKeyfile
public void setKeyfile(String keyfile)
Sets the keyfile.
keyfile
- The keyfile to set
setName
public void setName(String name)
Sets the name.
setPassphrase
public void setPassphrase(String passphrase)
Sets the passphrase.
passphrase
- The passphrase to set
setPassword
public void setPassword(String password)
Sets the password.
password
- The password to set
setTrust
public void setTrust(boolean trust)
Sets the trust.
trust
- whether to trust or not.
showMessage
public void showMessage(String message)
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.