|
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.SimpleUserPrincipal
public class SimpleUserPrincipal
This class implements the Principal
interface
and represents a simple user.
Principal
,
Subject
,
Serialized FormConstructor Summary | |
---|---|
SimpleUserPrincipal(String _name)
Creates a SimpleUserPrincipal with a user name. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares the specified Object with this SimpleUserPrincipal
for equality. |
String |
getName()
Gets the user name for this SimpleUserPrincipal . |
int |
hashCode()
Returns a hash code for this SimpleUserPrincipal . |
String |
toString()
Returns a string representation of this SimpleUserPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleUserPrincipal(String _name)
_name
- the user name for this user.
IllegalArgumentException
- if the name
is null
.Method Detail |
---|
public String getName()
SimpleUserPrincipal
.
getName
in interface Principal
SimpleUserPrincipal
public String toString()
SimpleUserPrincipal
.
toString
in interface Principal
toString
in class Object
SimpleUserPrincipal
.public boolean equals(Object o)
SimpleUserPrincipal
for equality.
Returns true
if the given object is also a
SimpleUserPrincipal
and the two SimpleUserPrincipals
have the same user names.
equals
in interface Principal
equals
in class Object
o
- Object to be compared for equality with this
SimpleUserPrincipal
.
true
if the specified Object is equal to this
SimpleUserPrincipal
.public int hashCode()
SimpleUserPrincipal
.
hashCode
in interface Principal
hashCode
in class Object
SimpleUserPrincipal
.
|
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 |