Attestation

class Attestation(val id: String, val type: String, val displayProperties: Set<DisplayProperties>?, val claims: Map<String, Claim<*>>, val count: Int? = null)

An Attestation contains a credential's information, and how to display them in an app.

Constructors

Link copied to clipboard
constructor(id: String, type: String, displayProperties: Set<DisplayProperties>?, claims: Map<String, Claim<*>>, count: Int? = null)

Properties

Link copied to clipboard

The data of the Attestation.

Link copied to clipboard
val count: Int?

The number of credentials of this type saved in the database. As a credential can be used up it has to be taken care of to get new credentials for this type in time.

Link copied to clipboard

Set of information to help an app on how to display an Attestation's Claims and other data.

Link copied to clipboard
val id: String

The unique identifier of the Attestation.

Link copied to clipboard

The Attestation's type, e.g. com.youniqx.walletsdk.EUDI_PID_IDENTIFIER for a PID

Functions

Link copied to clipboard
fun getDisplayLabel(languageKey: String, fallbackLanguageKey: String = "en"): String

A helper function to get an Attestation's label / name in a specific language.