|
IBM WebSphere® DataPower® XC10 Appliance Release 2.1 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.objectgrid.security.plugins.builtins.UserPasswordCredentialGenerator
public class UserPasswordCredentialGenerator
This credential generator creates UserPasswordCredential
objects.
UserPasswordCredentialGenerator has a one to one relationship with UserPasswordCredential because it can only create a UserPasswordCredential representing one identity.
CredentialGenerator
,
UserPasswordCredential
Constructor Summary | |
---|---|
UserPasswordCredentialGenerator()
Creates a UserPasswordCredentialGenerator with no user name or password. |
|
UserPasswordCredentialGenerator(String user,
String pwd)
Creates a UserPasswordCredentialGenerator with a specified user name and password |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Checks two UserPasswordCredentialGenerator objects for equality. |
Credential |
getCredential()
Creates a new UserPasswordCredential object using this
object's user name and password. |
String |
getPassword()
Gets the password for this credential generator. |
String |
getUserName()
Gets the user name for this credential. |
int |
hashCode()
Returns the hashcode of the UserPasswordCredentialGenerator object. |
void |
setProperties(String properties)
Sets additional properties namely a user name and password. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserPasswordCredentialGenerator()
setProperties(String)
public UserPasswordCredentialGenerator(String user, String pwd)
user
- the user namepwd
- the passwordMethod Detail |
---|
public Credential getCredential()
UserPasswordCredential
object using this
object's user name and password.
getCredential
in interface CredentialGenerator
UserPasswordCredential
instanceCredentialGenerator.getCredential()
,
UserPasswordCredential
public String getPassword()
public String getUserName()
public void setProperties(String properties)
setProperties
in interface CredentialGenerator
properties
- a properties string with a user name and
a password separated by a blank.
IllegalArgumentException
- if the format is not validpublic boolean equals(Object obj)
Two UserPasswordCredentialGenerator objects are equal if and only if their user names and passwords are equal.
equals
in class Object
obj
- the object we are testing for equality with this object.
true
if both UserPasswordCredentialGenerator objects
are equivalent.public int hashCode()
hashCode
in class Object
|
IBM WebSphere® DataPower® XC10 Appliance Release 2.1 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |