applyJson

open suspend fun applyJson(transactionData: TransactionData, credential: Credential): JsonElement?

Applies transaction in the context of OpenID4VP presentment.

Default implementation adds the same values as applyCbor, which is the recommended behavior.

Return

transaction-specific data that should be added to the presentment (in key-binding JWT body using kbJwtResponseClaimName), null if no extra data should be added.

Parameters

transactionData

transaction data

credential

credential being presented