CredentialResponseParameters

@Serializable
data class CredentialResponseParameters(    val format: CredentialFormatEnum? = null,     val credential: String? = null,     val credentials: Set<CredentialResponseSingleCredential>? = 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,     credentials: Set<CredentialResponseSingleCredential>? = 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
Link copied to clipboard
@SerialName(value = "credentials")
val credentials: Set<CredentialResponseSingleCredential>? = null

OID4VCI: Contains an array of one or more issued Credentials. It MUST NOT be used if the transaction_id parameter is present. The elements of the array MUST be objects.

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
Link copied to clipboard