VcJsonLdCredentialDefinition

@Serializable
data class VcJsonLdCredentialDefinition(val context: W3cVerifiableCredentialsContext, val type: Set<String>)(source)

Constructors

Link copied to clipboard
constructor(context: W3cVerifiableCredentialsContext, type: Set<String>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "@context")
val context: W3cVerifiableCredentialsContext

OID4VCI: @context: REQUIRED. Array as defined in VC DM 1.1: The value of the @context property MUST be an ordered set where the first item is a URI with the value https://www.w3.org/2018/credentials/v1. For reference, a copy of the base context is provided in Appendix B.1 Base Context. Subsequent items in the array MUST express context information and be composed of any combination of URIs or objects. It is RECOMMENDED that each URI in the @context be one which, if dereferenced, results in a document containing machine-readable information about the @context.

Link copied to clipboard
@SerialName(value = "type")
val type: Set<String>

OID4VCI: type: REQUIRED. Array designating the types a certain credential type supports, according to VC DM 1.1: The value of the type property MUST be, or map to (through interpretation of the @context property), one or more URIs. If more than one URI is provided, the URIs MUST be interpreted as an unordered set. Syntactic conveniences SHOULD be used to ease developer usage. Such conveniences might include JSON-LD terms. It is RECOMMENDED that each URI in the type be one which, if dereferenced, results in a document containing machine-readable information about the type.