public class Credentials
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Credentials()
Creates a new instance of the object
|
Credentials(java.lang.String login,
java.lang.String password)
Creates a new instance of the object and sets login and password
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLogin()
Returns the login of this credentials object
|
java.lang.String |
getPassword()
Returns the password in clear text
|
java.lang.String |
getPasswordMech()
Gets the passwordMech
|
int |
hashCode() |
void |
setLogin(java.lang.String login)
Set the login attribute of this credentials object
|
void |
setPassword(java.lang.String passwd)
Sets this password for this credentials object
|
void |
setPasswordMech(java.lang.String passwordMech)
Sets the passwordMech
|
java.lang.String |
toString()
Constructs a
String with all attributes in name = value format. |
public Credentials()
public Credentials(java.lang.String login, java.lang.String password)
login
- password
- public final java.lang.String getLogin()
public final void setLogin(java.lang.String login)
login
- Set the login attribute of this credentials objectpublic final java.lang.String getPassword()
public final void setPassword(java.lang.String passwd)
passwd
- Sets this password for this credentials objectpublic java.lang.String getPasswordMech()
public void setPasswordMech(java.lang.String passwordMech)
passwordMech
- The passwordMech to setpublic java.lang.String toString()
String
with all attributes in name = value format.toString
in class java.lang.Object
String
representation of this object.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object