Package org.forgerock.openam.entitlement
Class PrivilegeEvaluatorContext
java.lang.Object
org.forgerock.openam.entitlement.PrivilegeEvaluatorContext
- All Implemented Interfaces:
Serializable
Holds the context of the policy evaluation making it available to policy
conditions.
- See Also:
-
Constructor Summary
ConstructorDescriptionPrivilegeEvaluatorContext
(String realm, String resourceName, String applicationName) Creates a new Privilege Evaluator Context -
Method Summary
Modifier and TypeMethodDescriptionReturn the application namegetAttribute
(String key) Fetch an attribute from the mapReturn the condition decision cache.static PrivilegeEvaluatorContext
Returns the current context of the running threadgetRealm()
Return the realmReturn the resource namevoid
setAttribute
(String key, Object value) Set an attribute on the contextstatic void
Set the current context of the running thread
-
Constructor Details
-
PrivilegeEvaluatorContext
Creates a new Privilege Evaluator Context- Parameters:
realm
- The realm of the policy evaluationresourceName
- The resource being evaluatedapplicationName
- The application being evaluated
-
-
Method Details
-
getCurrent
Returns the current context of the running thread- Returns:
- object containing the current context
-
setCurrent
Set the current context of the running thread -
getRealm
Return the realm- Returns:
- The realm
-
getResourceName
Return the resource name- Returns:
- The resource name
-
getApplicationName
Return the application name- Returns:
- The application name
-
setAttribute
Set an attribute on the context- Parameters:
key
- The key of the attributevalue
- The value
-
getAttribute
Fetch an attribute from the map- Parameters:
key
- The key of the attribute- Returns:
- The value
-
getConditionDecisionCache
Return the condition decision cache.- Returns:
- the condition decision cache.
-