---
title: PolicyDecisionContext
description: Provides attributes and advices returned by AM policy decisions. When the PolicyEnforcementFilter processes a request, it injects the attributes and advices into this context.
component: pinggateway
version: 2026
page_id: pinggateway:reference:PolicyDecisionContext
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/PolicyDecisionContext.html
revdate: 2025-06-02T18:01:47Z
section_ids:
  PolicyDecisionContext-properties: Properties
  PolicyDecisionContext-moreinfo: More information
---

# PolicyDecisionContext

Provides attributes and advices returned by AM policy decisions. When the [PolicyEnforcementFilter](PolicyEnforcementFilter.html) processes a request, it injects the attributes and advices into this context.

## Properties

The context is named `policyDecision`, and is accessible at `${contexts.policyDecision}`. The context has the following properties:

* `"attributes"`: *[java.util.Map](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html)*

  A map with the format `Map<String, List<String>>`, where:

  * Key: Attribute name.

  * Value: A One or more attribute values provided in the policy decision. Can be empty, but not null.

* `"jsonAttributes"`: *[java.util.Map](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html)*

  A map with the format `Map<String, List<String>>`, where:

  * Key: Attribute name.

  * Value: One or more attribute values provided in the policy decision. Can be empty, but not null.

* `"advices"`: *[java.util.Map](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html)*

  A map with the format `Map<String, List<String>>`, where:

  * Key: Advice name.

  * Value: One or more advice values provided in the policy decision. Can be empty, but not null.

* `"jsonAdvices"`: *[java.util.Map](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html)*

  A map with the format `Map<String, List<String>>`, where:

  * Key: Advice name

  * Value: One or more advice values provided in the policy decision. Can be empty, but not null.

* `"actions"`: *[java.util.Map](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html)*

  A map with the format `Map<String, Boolean>` where:

  * Key: Action name.

  * Value: `true` when an action is allowed for the specified resource, `false` otherwise. Cannot be null.

* `"jsonActions"`: *[json.JsonValue](../_attachments/apidocs/org/forgerock/json/JsonValue.html)*

  A map with the format `Map<String, Boolean>`, where:

  * Key: Action name.

  * Value: `true` when an action is allowed for the specified resource, `false` otherwise. Cannot be null.

* `"resource"`: *[java.lang.String](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html)*

  The resource value used in the policy request. Can be empty, but not null.

## More information

[org.forgerock.openig.openam.PolicyDecisionContext.html](../_attachments/apidocs/org/forgerock/openig/openam/PolicyDecisionContext.html)
