toHttpResponse

Converts the result of the nonce endpoint to its response: status 200 with the nonce as JSON, Cache-Control: no-store (OID4VCI 1.0 7.2), and the header DPoP-Nonce, if present (RFC 9449 8.2).


Converts the result of the credential endpoint to its response: status 200 with the credential response as application/json, or encrypted as application/jwt (OID4VCI 1.0 8.3, 10.), and Cache-Control: no-store, as in every credential response example of OID4VCI 1.0, since it contains credentials.

Convert errors with at.asitplus.wallet.lib.oauth2.toResourceServerHttpResponse.