Package org.glassfish.security.common
Class Role
java.lang.Object
org.glassfish.security.common.Role
- All Implemented Interfaces:
Serializable,Principal
In EJBs, ACL checking is done using the Roles.
Roles are an abstraction of an application specific Logical Principals. These Principals do not have any properties of Principals within a Security Domain (or Realm). They merely serve as abstraction to application specific entities.
- Author:
- Harish Prabandham
- See Also:
-
Constructor Details
-
Role
Creates a new Role with a given name- Parameters:
name- cannot be null
-
Role
Creates a new Role with a given name- Parameters:
name- cannot be nulldescription- can be null
-
-
Method Details
-
getName
-
getDescription
- Returns:
- description of the role. Can be null.
-
equals
-
hashCode
public int hashCode() -
toString
-