Package org.forgerock.openig.openam
Class PolicyDecisionContext
- java.lang.Object
-
- org.forgerock.services.context.AbstractContext
-
- org.forgerock.openig.openam.PolicyDecisionContext
-
- All Implemented Interfaces:
org.forgerock.services.context.Context
public class PolicyDecisionContext extends org.forgerock.services.context.AbstractContextAPolicyDecisionContextconvey policy decision information to downstream filters and handlers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>getAdvices()Returns the unmodifiable map of advices provided in the policy decision (can be empty, but nevernull).Map<String,List<String>>getAttributes()Returns the unmodifiable map of attributes provided in the policy decision (can be empty, but nevernull).org.forgerock.json.JsonValuegetJsonAdvices()Returns the unmodifiable advices entry in the policy decision (nevernull).org.forgerock.json.JsonValuegetJsonAttributes()Returns the unmodifiable attributes entry in the policy decision (nevernull).
-
-
-
Method Detail
-
getAttributes
public Map<String,List<String>> getAttributes()
Returns the unmodifiable map of attributes provided in the policy decision (can be empty, but nevernull).- Returns:
- the map of attributes provided in the policy decision
-
getJsonAttributes
public org.forgerock.json.JsonValue getJsonAttributes()
Returns the unmodifiable attributes entry in the policy decision (nevernull).The returned JsonValue wraps a
Map<String, List<String>>just like:{ "dn": [ "uid=bjensen,dc=example,dc=com" ], "emails": [ "bjensen@example.com", "jensen@acme.org" ] }- Returns:
- the unmodifiable attributes entry in the policy decision (never
null).
-
getAdvices
public Map<String,List<String>> getAdvices()
Returns the unmodifiable map of advices provided in the policy decision (can be empty, but nevernull).- Returns:
- the map of advices provided in the policy decision
-
getJsonAdvices
public org.forgerock.json.JsonValue getJsonAdvices()
Returns the unmodifiable advices entry in the policy decision (nevernull).The returned JsonValue wraps a
Map<String, List<String>>just like:{ "AuthLevelConditionAdvice": [ "3" ] }- Returns:
- the unmodifiable advices entry in the policy decision (never
null).
-
-