DidDocumentMetadata

@Serializable
data class DidDocumentMetadata(val created: Instant? = null, val updated: Instant? = null, val deactivated: Boolean = false, val versionId: String? = null, val nextUpdate: Instant? = null, val nextVersionId: String? = null, val canonicalId: Did? = null, val equivalentId: List<Did> = emptyList(), val proof: List<JsonObject> = emptyList())

DID document metadata per DID Resolution 1.0 §4.3 — metadata about the DID document.

Parameters

created

timestamp of the Create operation (SHOULD be present)

updated

timestamp of the last Update operation (SHOULD be present)

deactivated

MUST be true when the DID is deactivated; omitted otherwise

versionId

version of the last Update operation (SHOULD be present)

nextUpdate

timestamp of the next Update, when this is not the latest version

nextVersionId

version of the next Update, when this is not the latest version

canonicalId

the canonical DID for the subject, per the DID method

equivalentId

DIDs the method guarantees are logically equivalent to id

proof

proofs added by the controller or the verifiable data registry

Constructors

Link copied to clipboard
constructor(created: Instant? = null, updated: Instant? = null, deactivated: Boolean = false, versionId: String? = null, nextUpdate: Instant? = null, nextVersionId: String? = null, canonicalId: Did? = null, equivalentId: List<Did> = emptyList(), proof: List<JsonObject> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
@Serializable(with = XmlDateTimeSerializer::class)
val created: Instant?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val proof: List<JsonObject>
Link copied to clipboard
@Serializable(with = XmlDateTimeSerializer::class)
val updated: Instant?
Link copied to clipboard

Functions

Link copied to clipboard
fun toJson(): JsonObject

Serializes to the §4.3 JSON structure, omitting absent members.