org.apache.tools.ant.taskdefs.optional.ssh

Class SSHUserInfo

Implemented Interfaces:
UserInfo

public class SSHUserInfo
extends java.lang.Object
implements UserInfo

Constructor Summary

SSHUserInfo()
SSHUserInfo(String password, boolean trustAllCertificates)

Method Summary

String
getKeyfile()
Returns the keyfile.
String
getName()
String
getPassphrase()
Returns the passphrase.
String
getPassphrase(String message)
String
getPassword()
boolean
getTrust()
boolean
prompt(String str)
boolean
promptPassphrase(String message)
boolean
promptPassword(String passwordPrompt)
boolean
promptYesNo(String message)
boolean
retry()
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)

Constructor Details

SSHUserInfo

public SSHUserInfo()


SSHUserInfo

public SSHUserInfo(String password,
                   boolean trustAllCertificates)

Method Details

getKeyfile

public String getKeyfile()
Returns the keyfile.

Returns:
String


getName

public String getName()

See Also:
com.jcraft.jsch.UserInfo.getName()


getPassphrase

public String getPassphrase()
Returns the passphrase.

Returns:
String


getPassphrase

public String getPassphrase(String message)

See Also:
com.jcraft.jsch.UserInfo.getPassphrase(String)


getPassword

public String getPassword()

See Also:
com.jcraft.jsch.UserInfo.getPassword()


getTrust

public boolean getTrust()

Returns:
whether to trust or not.


prompt

public boolean prompt(String str)

See Also:
com.jcraft.jsch.UserInfo.prompt(String)


promptPassphrase

public boolean promptPassphrase(String message)

See Also:
com.jcraft.jsch.UserInfo.promptPassphrase(String)


promptPassword

public boolean promptPassword(String passwordPrompt)

See Also:
com.jcraft.jsch.UserInfo.promptPassword(String)


promptYesNo

public boolean promptYesNo(String message)

See Also:
com.jcraft.jsch.UserInfo.promptYesNo(String)


retry

public boolean retry()

See Also:
com.jcraft.jsch.UserInfo.retry()


setKeyfile

public void setKeyfile(String keyfile)
Sets the keyfile.

Parameters:
keyfile - The keyfile to set


setName

public void setName(String name)
Sets the name.

Parameters:
name - The name to set


setPassphrase

public void setPassphrase(String passphrase)
Sets the passphrase.

Parameters:
passphrase - The passphrase to set


setPassword

public void setPassword(String password)
Sets the password.

Parameters:
password - The password to set


setTrust

public void setTrust(boolean trust)
Sets the trust.

Parameters:
trust - whether to trust or not.


showMessage

public void showMessage(String message)

See Also:
com.jcraft.jsch.UserInfo.showMessage(String)


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.