SdJwtVcCredential

A SD-JWT VC credential, according to draft-ietf-oauth-sd-jwt-vc-03 (https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/).

An object that implements this interface must also be a Credential

Inheritors

Properties

Link copied to clipboard
abstract val issuerProvidedData: ByteString

The issuer-provided data associated with the credential, see Credential.issuerProvidedData.

Link copied to clipboard
abstract val otherVcts: List<String>

Other Verifiable Credential Types (VCTs) that can be used for matching in addition to vct.

Link copied to clipboard
abstract val vct: String

The Verifiable Credential Type - or vct - as defined in section 3.2.2.1.1 of draft-ietf-oauth-sd-jwt-vc-03 (https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/)

Functions

Link copied to clipboard

Extracts validity from the credential

Link copied to clipboard
open suspend fun getClaimsImpl(documentTypeRepository: DocumentTypeRepository?, locales: List<String> = emptyList()): List<JsonClaim>

Gets the top-level claims in the credential, see Credential.getClaims.

Link copied to clipboard
open suspend fun getIssuerCertChain(): X509CertChain?

The X.509 certificate chain for the issuer signature from the SD-JWT VC header (x5c), if present.

Link copied to clipboard
suspend fun SdJwtVcCredential.validate(now: Instant? = Clock.System.now()): ValidationResult

Validates this certified SD-JWT VC credential against its current issuer-provided data.

suspend fun SdJwtVcCredential.validate(issuerProvidedAuthenticationData: ByteString, now: Instant? = Clock.System.now()): ValidationResult

Validates candidate issuer-provided static authentication data against this SD-JWT VC credential.

Link copied to clipboard
open suspend fun validateSdJwtVc(issuerProvidedAuthenticationData: ByteString, now: Instant? = Clock.System.now()): ValidationResult

Validates candidate issuer-provided static authentication data against this SD-JWT VC credential according to RFC 9901 and the SD-JWT VC profile.