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.
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 |
Each policy can be individually configured through the validator configuration. For detailed configuration options for all policies, see the Configuration Reference.
Start with the default configuration and adjust only the options you need to change. This ensures you maintain security while customizing for your specific requirements.
The validator executes policies in a specific order to ensure efficient validation:
If the credential format policy fails, secondary policies are skipped to avoid processing invalid credentials.
Policy validation results include:
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 |
The validator policies can be categorized into different types:
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 | ✅ | ✅ | ❌ |