VerificationBuilder
Verification Builder DSL.
Provides a fluent API for verifying credentials. Focused only on credential-specific verification operations.
Example Usage:
val result = verifier.verify {
credential(credential)
checkRevocation()
checkExpiration()
validateSchema("https://example.edu/schemas/degree.json")
}Constructors
Functions
Inject an engine-specific verification option into VerificationOptions.additionalOptions.
Allow untrusted issuers (no trust checking). This is the default behavior.
Build and perform verification.
Enable expiration checking.
Enable revocation checking.
Set the credential to verify.
Enable or disable holder binding enforcement. When enabled, each credential's credentialSubject.id must match the presentation holder.
Reject SD-JWT VC credentials that carry no issuer-signed cnf holder binding (opt-in, default off). Without this, a cnf-less SD-JWT credential is accepted as a bearer credential.
Require the credential's proof to be a JAdES proof matching profile, and supply the trust-anchor resolver the engine consults for signer-cert qualification.
Require issuer to be a trusted anchor in the trust registry.
Despite its name this does not search for a trust path and ignores maxPathLength: it is exactly requireTrust, i.e. the issuer must be a trust anchor of registry (for the credential's types). A path search needs a verifier identity, which this builder does not have, so the depth limit cannot be honoured; use requireTrust, or call TrustRegistry.findTrustPath yourself and enforce your own limit.
Disable expiration checking.
Disable revocation checking.
Disable schema validation.
Enable proof purpose validation.
Enable schema validation.
Enable or disable presentation proof verification.
Supply the trust-anchor resolver without imposing a profile floor. Useful when the caller trusts whatever profile the credential was issued with (typical for B-T credentials inspected by a B-B-tolerant verifier).
Use a custom trust policy.