---
title: JwtValidationErrorContext
description: Provides the properties of a JWT after validation fails. When the JwtValidationFilter fails to validate a JWT, or the IdTokenValidationFilter fails to validate an id_token, it injects the JWT and a list of violations into this context.
component: pinggateway
version: 2026
page_id: pinggateway:reference:JwtValidationErrorContext
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/JwtValidationErrorContext.html
revdate: 2025-06-02T18:01:47Z
section_ids:
  JwtValidationErrorContext-properties: Properties
  JwtValidationErrorContext-moreinfo: More information
---

# JwtValidationErrorContext

Provides the properties of a JWT after validation fails. When the [JwtValidationFilter](JwtValidationFilter.html) fails to validate a JWT, or the [IdTokenValidationFilter](IdTokenValidationFilter.html) fails to validate an id\_token, it injects the JWT and a list of violations into this context.

## Properties

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

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

  The value of the JWT. Cannot be null.

* `"violations"`: *[java.util.List](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html)<[Violation](../_attachments/apidocs/org/forgerock/openig/tools/jwt/validation/Violation.html)>*

  A list of violations.

## More information

[org.forgerock.openig.filter.jwt.JwtValidationFilter](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationFilter.html)

[org.forgerock.openig.filter.oauth2.client.IdTokenValidationFilterHeaplet](../_attachments/apidocs/org/forgerock/openig/filter/oauth2/client/IdTokenValidationFilterHeaplet.html)

[org.forgerock.openig.filter.jwt.JwtValidationContext](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationContext.html)

[org.forgerock.openig.filter.jwt.JwtValidationErrorContext](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationErrorContext.html)
