Builder

data class Builder(val vct: String, val keyBound: Boolean = true, claims: MutableMap<String, DocumentAttribute> = mutableMapOf())

Builder class for class JsonDocumentType.

Parameters

vct

the document type e.g. urn:eudi:pid:1.

keyBound

true if a device-bound key must exist for the document.

Constructors

Link copied to clipboard
constructor(vct: String, keyBound: Boolean = true, claims: MutableMap<String, DocumentAttribute> = mutableMapOf())

Properties

Link copied to clipboard
val keyBound: Boolean = true
Link copied to clipboard
val vct: String

Functions

Link copied to clipboard
fun addClaim(type: DocumentAttributeType, identifier: String, displayName: String, description: String, icon: Icon? = null, sampleValue: JsonElement? = null): JsonDocumentType.Builder

Add a claim to the metadata of the JSON-based Document Type.

Link copied to clipboard