Not After Verification Policy Reference

This reference documents the notAfter verification policy for the verifier service. The notAfter policy checks if a credential has expired based on its expiration date.

Policy Overview

The notAfter verification policy validates the temporal validity of credentials and presentations by ensuring they have not been used after their expiration date. This temporal check helps enforce time-bound credentials that should only be valid until a specific point in time.

Supported Standards

The notAfter verification policy supports expiration validation across multiple standards:

StandardOrganizationSpecificationExpiration PropertyValidation Aspect
JSON Web Token (JWT)IETFRFC 7519 §4.1.4exp (expiration time)Checks current time against the JWT expiration time claim
ISO 18013-5 mDLISOISO 18013-5:2021 §8.2.2.2expiry_dateVerifies mobile driving license has not been used after its expiration date
Verifiable Credentials Data Model v1.1W3CVC Data Model §4.8expirationDateValidates credential has not been used after its expiration date
Verifiable Credentials Data Model v2.0W3CVC Data Model §4.9validUntilEnsures current time is not after the specified validUntil date

How It Works

The notAfter policy validates one or more date fields in the credential to ensure that the current time is not after the expiration date:

Temporal Properties

The notAfter policy can verify different temporal properties depending on the credential format:

Credential TypeTemporal PropertyDescriptionSpecification Reference
W3C Verifiable Credential (v1.1)expirationDateThe date when the credential expiresW3C VC Data Model §4.8
W3C Verifiable Credential (v2.0)validUntilExplicit date until which the credential is validW3C VC Data Model §4.9
JWT Credentialexp (expiration time)Date after which the JWT is not validIETF RFC 7519 §4.1.4
ISO 18013-5 mDLexpiry_dateDate after which the mobile driving license is not validISO 18013-5:2021 §8.2.2.2

Time Tolerance

The notAfter policy supports a configurable time tolerance to account for:

  • Clock skew between issuer, holder, and verifier systems
  • Network delays in credential transmission and verification
  • Time zone discrepancies

The tolerance is specified in milliseconds and creates a buffer period after the expiration date where the credential is still considered valid.

Configuration

The notAfter verification policy offers various configuration options that control its behavior, including:

  • Enabling or disabling temporal validation
  • Setting time tolerance values
  • Configuring behavior for missing date fields
  • Setting different validation rules for credentials and presentations

For detailed configuration options, parameters, and default values, see the Verifier Configuration Reference.