public class PrivilegeEvaluatorContext extends Object implements Serializable
Constructor and Description |
---|
PrivilegeEvaluatorContext(String realm,
String resourceName,
String applicationName)
Creates a new Privilege Evaluator Context
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
Return the application name
|
Object |
getAttribute(String key)
Fetch an attribute from the map
|
Map<String,ConditionDecision> |
getConditionDecisionCache()
Return the condition decision cache.
|
static PrivilegeEvaluatorContext |
getCurrent()
Returns the current context of the running thread
|
String |
getRealm()
Return the realm
|
String |
getResourceName()
Return the resource name
|
void |
setAttribute(String key,
Object value)
Set an attribute on the context
|
static void |
setCurrent(PrivilegeEvaluatorContext ctx)
Set the current context of the running thread
|
public PrivilegeEvaluatorContext(String realm, String resourceName, String applicationName)
realm
- The realm of the policy evaluationresourceName
- The resource being evaluatedapplicationName
- The application being evaluatedpublic static PrivilegeEvaluatorContext getCurrent()
public static void setCurrent(PrivilegeEvaluatorContext ctx)
public String getRealm()
public String getResourceName()
public String getApplicationName()
public void setAttribute(String key, Object value)
key
- The key of the attributevalue
- The valuepublic Object getAttribute(String key)
key
- The key of the attributepublic Map<String,ConditionDecision> getConditionDecisionCache()
Copyright © 2010-2018, ForgeRock All Rights Reserved.