KtorSdJwtTypeMetadataDocumentRetriever
class KtorSdJwtTypeMetadataDocumentRetriever(val httpClient: HttpClient, val clock: Clock, val locateUrl: (SdJwtVcType) -> String?, val json: Json = Json.Default, val integrityChecker: SdJwtTypeMetadataDocumentIntegrityChecker = SdJwtTypeMetadataDocumentIntegrityChecker.DEFAULT) : SdJwtTypeMetadataDocumentRetriever(source)
Constructors
Link copied to clipboard
constructor(httpClient: HttpClient, clock: Clock, locateUrl: (SdJwtVcType) -> String?, json: Json = Json.Default, integrityChecker: SdJwtTypeMetadataDocumentIntegrityChecker = SdJwtTypeMetadataDocumentIntegrityChecker.DEFAULT)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Resolves the URL a metadata document is hosted at for a given vct (used both as document identity and for walking extends). Required because a vct is not necessarily a URL (e.g. urn:eudi:pid:1); the owning at.asitplus.wallet.lib.data.CredentialMetadataRegistry keeps the actual vct -> URL mapping and supplies this lookup. A vct for which this returns null cannot be fetched, and retrieve returns null for it.
Functions
Link copied to clipboard
open suspend override fun retrieve(sdJwtVcType: SdJwtVcType, integrityMetadata: W3cSubresourceIntegrityMetadata?): SdJwtTypeMetadataDocument?