|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.security.plugins.builtins.UserPasswordCredential
public class UserPasswordCredential
This class represents a credential containing a user ID and password.
Credential
,
UserPasswordCredentialGenerator.getCredential()
,
Serialized FormConstructor Summary | |
---|---|
UserPasswordCredential(String userName,
String password)
Creates a UserPasswordCredential with the specified user name and password. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Checks two UserPasswordCredential objects for equality. |
String |
getPassword()
Gets the password for this credential. |
String |
getUserName()
Gets the user name for this credential. |
int |
hashCode()
Returns the hashcode of the UserPasswordCredential object. |
void |
setPassword(String password)
Sets the password for this credential. |
void |
setUserName(String userName)
Sets the user name for this credential. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserPasswordCredential(String userName, String password)
userName
- the user name for this credentialpassword
- the password for this credential
IllegalArgumentException
- if userName or password is null
Method Detail |
---|
public String getUserName()
setUserName(String)
method of this classsetUserName(String)
public void setUserName(String userName)
userName
- the user name to set.
IllegalArgumentException
- if userName is null
public String getPassword()
setPassword(String)
method of this classsetPassword(String)
public void setPassword(String password)
password
- the password to set.
IllegalArgumentException
- if password is null
public boolean equals(Object o)
Two UserPasswordCredential objects are equal if and only if their user names and passwords are equal.
equals
in interface Credential
equals
in class Object
o
- the object we are testing for equality with this object.
true
if both UserPasswordCredential objects are equivalent.Credential.equals(Object)
public int hashCode()
hashCode
in interface Credential
hashCode
in class Object
Credential.hashCode()
public String toString()
toString
in class Object
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |