|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.auth.CSUserPrincipal
Represents a Cafesoft Security System User Principal.
Principals such as this CSUserPrincipal may be associated with
a particular Subject to augment that Subject with
an additional identity. Refer to the Subject class for more
information on how to achieve this. Authorization decisions can then be
based upon the Principals associated with a Subject.
Principal,
Subject,
Serialized Form| Constructor Summary | |
CSUserPrincipal(String name)
Create a CSUserPrincipal with the specified username. |
|
| Method Summary | |
boolean |
equals(Object o)
Compares the specified Object with this CSUserPrincipal
for equality. |
String |
getName()
Return the username for this CSUserPrincipal. |
int |
hashCode()
Return a hash code for this CSUserPrincipal. |
String |
toString()
Return a string representation of this CSUserPrincipal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CSUserPrincipal(String name)
name - the username for this user.
NullPointerException - if the name
is null| Method Detail |
public String getName()
CSUserPrincipal.
getName in interface PrincipalCSUserPrincipalpublic String toString()
CSUserPrincipal.
toString in interface PrincipaltoString in class ObjectCSUserPrincipalpublic boolean equals(Object o)
CSUserPrincipal
for equality. Returns true if the given object is also a
CSUserPrincipal and the two CSUserPrincipals
have the same username.
equals in interface Principalequals in class Objecto - Object to be compared for equality with this
CSUserPrincipal
CSUserPrincipalpublic int hashCode()
CSUserPrincipal.
hashCode in interface PrincipalhashCode in class ObjectCSUserPrincipal which is
unique based on the Principal name and this class.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||