Validation Policies Reference
This reference documents the validation policies supported by the validator service. These policies are the rules and checks that the validator applies to your credentials and presentations during validation.
Available Validation Policies
Section titled “Available Validation Policies”The validator service implements the following policies for credential and presentation validation:
Policy | Description | Key Function |
---|---|---|
Credential Query | Validates credential queries and presentation submissions | Ensures presentations satisfy their credential query requirements |
Trusted Issuer | Validates issuer trust through certificate chains | Verifies credentials are issued by trusted entities |
Configuration
Section titled “Configuration”Each policy can be individually configured through the validator configuration. For detailed configuration options for all policies, see the Configuration Reference.
Policy Execution Order
Section titled “Policy Execution Order”The validator executes policies in a specific order to ensure efficient validation:
- Credential Format Policy - First validates that credentials can be parsed and are well-formed
- Secondary Policies - Only executed if credential format validation succeeds:
- Credential Query Policy - Validates query satisfaction
- Trusted Issuer Policy - Validates issuer trust
If the credential format policy fails, secondary policies are skipped to avoid processing invalid credentials.
Validation Results
Section titled “Validation Results”Policy validation results include:
- Success - The policy check passed
- Warning - The policy found minor issues that don’t necessarily invalidate the credential
- Error - The policy check failed, indicating the credential is invalid
Error Handling
Section titled “Error Handling”Each policy defines how to handle different error scenarios, with configurable actions:
Action | Description | Effect on Validation |
---|---|---|
valid | Treat the scenario as valid | Allows validation to continue |
warning | Generate a warning | Validation continues with warning in result |
error | Generate an error | Validation fails with error in result |
Policy Types
Section titled “Policy Types”The validator policies can be categorized into different types:
Query Validation
Section titled “Query Validation”- Credential Query - Validates that presentations satisfy credential query requirements
Trust Validation
Section titled “Trust Validation”- Trusted Issuer - Validates issuer trust through certificate chain verification
Supported Standards
Section titled “Supported Standards”The validator policies support validation across multiple standards:
Standard | Organization | Credential Format Policy | Credential Query Policy | Trusted Issuer Policy |
---|---|---|---|---|
W3C Verifiable Credentials | W3C | ✅ | ✅ | ❌ |
IETF Digital Credentials | IETF | ✅ | ✅ | ✅ |
ISO 18013-5 (mDL) | ISO | ✅ | ✅ | ✅ |
DIF Presentation Exchange | DIF | ✅ | ✅ | ❌ |
DCQL | DIF | ✅ | ✅ | ❌ |