|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityRole
The SecurityRole
interface 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.
Note: SecurityRole
implementations are returned as a Map
by the getRoles
method.
RoleMapper.getRoles(Subject subject, Resource resource, ContextHandler handler)
Method Summary | |
---|---|
abstract boolean |
equals(Object another) Compares this security role to the security role in the specified object. |
abstract String |
getDescription() Gets a description of this security role. |
abstract String |
getName() Gets the name of this security role. |
abstract int |
hashCode() Returns a hashcode for this security role. |
abstract String |
toString() Returns a String representation of this security role. |
Method Detail |
---|
boolean equals(Object another)
equals
in class Object
another
- the other security role with which to compare this security role.TRUE
if the security role passed in matches the security role represented by the implementation of this interface, and FALSE
otherwise.String toString()
toString
in class Object
int hashCode()
hashCode
in class Object
String getName()
String getDescription()
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |