Not Before Verification Policy Reference

This reference documents the notBefore verification policy for the verifier service. The notBefore policy checks if a credential is being used before its effective date.

Policy Overview

The notBefore verification policy validates the temporal validity of credentials and presentations by ensuring they are not used before their effective date. This temporal check helps enforce time-bound credentials that should only be valid from a specific point in time.

Supported Standards

The notBefore verification policy supports effective date validation across multiple standards:

StandardOrganizationSpecificationEffective Date PropertyValidation Aspect
JSON Web Token (JWT)IETFRFC 7519 §4.1.5nbf (not before)Checks current time against the JWT not before time claim
ISO 18013-5 mDLISOISO 18013-5:2021 §8.2.2.2issue_dateVerifies mobile driving license is not used before its issue date
Verifiable Credentials Data Model v1.1W3CVC Data Model §4.6issuanceDateValidates credential is not used before its issuance date
Verifiable Credentials Data Model v2.0W3CVC Data Model §4.9validFromEnsures current time is not before the specified validFrom date

How It Works

The notBefore policy validates one or more date fields in the credential to ensure that the current time is not before the effective date:

Temporal Properties

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

Credential TypeTemporal PropertyDescriptionSpecification Reference
W3C Verifiable Credential (v1.1)issuanceDateThe date when the credential was issuedW3C VC Data Model §4.6
W3C Verifiable Credential (v2.0)validFromExplicit date from which the credential is validW3C VC Data Model §4.9
JWT Credentialnbf (not before)Date before which the JWT is not validIETF RFC 7519 §4.1.5
ISO 18013-5 mDLissue_dateDate from which the mobile driving license is validISO 18013-5:2021 §8.2.2.2

Time Tolerance

The notBefore 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 before the effective date where the credential is still considered valid.

Configuration

The notBefore 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.