CredentialDisplay

@Serializable
data class CredentialDisplay(val issuerName: String? = null, val issuerLogo: Logo? = null, val name: String? = null, val description: String? = null, val logo: Logo? = null, val backgroundColor: String? = null, val textColor: String? = null)(source)

How to show a credential, from the issuer's metadata (OpenID4VCI 1.0 §12.2.4) in the holder's language: each part only when the issuer gives it. Colours are CSS colours, such as "#12107c".

Constructors

Link copied to clipboard
constructor(issuerName: String? = null, issuerLogo: Logo? = null, name: String? = null, description: String? = null, logo: Logo? = null, backgroundColor: String? = null, textColor: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "background_color")
val backgroundColor: String?

The card's background colour.

Link copied to clipboard

A description of the credential.

Link copied to clipboard
@SerialName(value = "issuer_logo")
val issuerLogo: Logo?

The issuer's logo.

Link copied to clipboard
@SerialName(value = "issuer_name")
val issuerName: String?

The issuer's name.

Link copied to clipboard
val logo: Logo?

The credential's logo.

Link copied to clipboard
val name: String?

The credential's name.

Link copied to clipboard
@SerialName(value = "text_color")
val textColor: String?

The card's text colour.