CredentialResponse

sealed interface CredentialResponse(source)

Send it converted with toHttpResponse.

Inheritors

Types

Link copied to clipboard
data class Encrypted(val response: JweEncrypted) : OpenId4VciServer.CredentialResponse

Sent as JWE-serialized content with media type application/jwt.

Link copied to clipboard

Sent as JSON-serialized content with media type application/json.

Functions

Link copied to clipboard

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.