JsonClaim

data class JsonClaim(val displayName: String, val attribute: DocumentAttribute?, val vct: String, val claimPath: JsonArray, val value: JsonElement) : Claim

A claim in a JSON-based credential.

Constructors

Link copied to clipboard
constructor(displayName: String, attribute: DocumentAttribute?, vct: String, claimPath: JsonArray, value: JsonElement)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val attribute: DocumentAttribute?

a DocumentAttribute, if the claim is for a well-known attribute.

Link copied to clipboard
val claimPath: JsonArray

the claim name.

Link copied to clipboard
open override val displayName: String

a short human readable string describing the claim.

Link copied to clipboard
val value: JsonElement

the value of the claim

Link copied to clipboard
val vct: String

the Verifiable Credential Type.

Functions

Link copied to clipboard
open override fun render(timeZone: TimeZone): String

Returns the value of a claim as a human readable string.

Link copied to clipboard

Serializes Claim to CBOR.