Nonce

data class Nonce(val response: ClientNonceResponse, val dpopNonce: String? = null)(source)

Send it converted with toHttpResponse, which sends response as the JSON-serialized body, and dpopNonce in HTTP header DPoP-Nonce when present.

Constructors

Link copied to clipboard
constructor(response: ClientNonceResponse, dpopNonce: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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).