mdocPresentmentGenerateResponse

suspend fun mdocPresentmentGenerateResponse(selection: CredentialSelection, deviceRequest: DeviceRequest, eReaderKey: EcPublicKey?, sessionTranscript: DataItem, source: PresentmentSource, requesterAppId: String? = null, requesterOrigin: String? = null, creationTime: Instant = Clock.System.now()): Iso18013Response

Generates the ISO mdoc presentment response given a user's CredentialSelection.

Return

a Iso18013Response containing DeviceResponse and EventPresentmentData.

Parameters

selection

The CredentialSelection obtained from consent.

deviceRequest

The device request.

eReaderKey

The ephemeral reader key, if available.

sessionTranscript

the session transcript.

source

the source of truth used for presentment.

requesterAppId

the appId if an app is making the request or null.

requesterOrigin

the origin or null.

creationTime

the time to use for creationTime when presenting credentials such as SD-JWT+KB VCs.