public interface SecurityRole
SecurityRoleinterface represents the abstract notion of a security role.
Users/groups can have different roles at different times, depending upon
what they are trying to do. For example, a user may have the role "Admin"
while doing administrative tasks, but the same user might not be allowed
to have that role outside normal work hours. Users/groups can have multiple
roles at the same time, depending upon what the security providers grant.
The methods on the
SecurityRole interface allow one to obtain
basic information about the
SecurityRole, or to compare it to another
security role. These methods are designed for the convenience of security providers.
SecurityRole implementations are returned as a
|Modifier and Type||Method and Description|
Compares this security role to the security role in the specified object.
Gets a description of this security role.
Gets the name of this security role.
Returns a hashcode for this security role.
Returns a String representation of this security role.
boolean equals(java.lang.Object another)
another- the other security role with which to compare this security role.
TRUEif the security role passed in matches the security role represented by the implementation of this interface, and