CredentialResponseParameters

@Serializable
data class CredentialResponseParameters(val format: CredentialFormatEnum? = null, val credential: String? = null, val acceptanceToken: String? = null, val clientNonce: String? = null, val clientNonceExpiresIn: Duration? = null)(source)

Constructors

Link copied to clipboard
constructor(format: CredentialFormatEnum? = null, credential: String? = null, acceptanceToken: String? = null, clientNonce: String? = null, clientNonceExpiresIn: Duration? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "acceptance_token")
val acceptanceToken: String? = null

OID4CI: OPTIONAL. A JSON string containing a security token subsequently used to obtain a Credential. MUST be present when credential is not returned.

Link copied to clipboard
@SerialName(value = "c_nonce")
val clientNonce: String? = null

OID4VCI: OPTIONAL. JSON string containing a nonce to be used to create a proof of possession of key material when requesting a Credential. When received, the Wallet MUST use this nonce value for its subsequent credential requests until the Credential Issuer provides a fresh nonce.

Link copied to clipboard
@SerialName(value = "c_nonce_expires_in")
val clientNonceExpiresIn: Duration? = null

OID4VCI: OPTIONAL. JSON integer denoting the lifetime in seconds of the c_nonce.

Link copied to clipboard
@SerialName(value = "credential")
val credential: String? = null

OID4VCI: OPTIONAL. Contains issued Credential. MUST be present when acceptance_token is not returned. MAY be a JSON string or a JSON object, depending on the Credential format.

Link copied to clipboard
@SerialName(value = "format")
val format: CredentialFormatEnum? = null

OID4VCI: OPTIONAL. JSON string denoting the format of the issued Credential.

Functions

Link copied to clipboard