|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.sftp.authentication.SshAuthentication
org.ow2.petals.bc.sftp.authentication.SshPasswordAuthentication
public final class SshPasswordAuthentication
Utility class that holds the informations used by the component to perform a user / password authentication onto the SSH server.
| Constructor Summary | |
|---|---|
SshPasswordAuthentication(java.lang.String user,
java.lang.String password)
Default constructor. |
|
| Method Summary | |
|---|---|
com.sshtools.j2ssh.authentication.SshAuthenticationClient |
getAuthenticationClient()
Builds the object used by the SFTPClientPool to perform the authentication on the SSH server. |
java.lang.String |
getKey()
Builds & returns a portion of the key used by the SFTPClientPool to identify a SSH session. |
java.lang.String |
getPassword()
Accessor on the password used for SSH user / password authentication. |
java.lang.String |
toString()
Return the object content as String (Overrides the toString method). |
| Methods inherited from class org.ow2.petals.bc.sftp.authentication.SshAuthentication |
|---|
getUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SshPasswordAuthentication(java.lang.String user,
java.lang.String password)
throws ConfigurationException
user - the username used for SSH user / password authenticationpassword - the password used for SSH user / password authentication
ConfigurationException - if the configuration is not valid| Method Detail |
|---|
public final java.lang.String getPassword()
public final com.sshtools.j2ssh.authentication.SshAuthenticationClient getAuthenticationClient()
getAuthenticationClient in class SshAuthenticationpublic final java.lang.String getKey()
getKey in class SshAuthenticationpublic final java.lang.String toString()
toString in class SshAuthentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||