validateVc

suspend fun validateVc(expectedVct: String? = null, now: Instant? = Clock.System.now()): ValidationResult

Validates this SdJwt according to the SD-JWT VC specification.

This runs all RFC 9901 checks via validate and additionally enforces SD-JWT VC profile requirements:

  • The header 'typ' must be a recognized VC type ('vc+sd-jwt', 'dc+sd-jwt', or mime-type equivalent).

  • The 'vct' claim must be present (and match expectedVct if provided).

  • Disclosures must not selectively disclose 'vct' or 'status'.

  • The 'status' claim (if present) must be a valid status list claim.

Return

a ValidationResult containing any errors or warnings.

Parameters

expectedVct

the expected Verifiable Credential Type, or null to only check that 'vct' is present.

now

reference time to check expiration and validity windows, or null to skip.