|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.auth.CSRolePrincipal
CSRolePrincipal represents a Cafesoft Security System Role Principal.
A Role may be a Group of Principals or an identity that can be assumed by Users. For example, for purposed of access control, it may be useful to define the following Roles:
Principals such as this CSRolePrincipal 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 | |
CSRolePrincipal(String name)
Create a CSRolePrincipal with the specified role name. |
|
| Method Summary | |
boolean |
equals(Object o)
Compares the specified Object with this CSRolePrincipal
for equality. |
String |
getName()
Return the role name for this CSRolePrincipal. |
int |
hashCode()
Return a hash code for this CSRolePrincipal. |
String |
toString()
Return a string representation of this CSRolePrincipal.
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CSRolePrincipal(String name)
name - the role name for this user.
NullPointerException - if the name
is null.| Method Detail |
public String getName()
CSRolePrincipal.
getName in interface PrincipalCSRolePrincipalpublic String toString()
CSRolePrincipal.
toString in interface PrincipaltoString in class ObjectCSRolePrincipal.public boolean equals(Object o)
CSRolePrincipal
for equality. Returns true if the given object is also a
CSRolePrincipal and the two CSRolePrincipals
have the same role name.
equals in interface Principalequals in class Objecto - Object to be compared for equality with this
CSRolePrincipal.
CSRolePrincipal.public int hashCode()
CSRolePrincipal.
hashCode in interface PrincipalhashCode in class ObjectCSRolePrincipal 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 | ||||||||||