aries / net.globalid.aries.features.connection.models.dids / DidDoc

DidDoc

@JsonClass(true) data class DidDoc

DID document

The model representation of the DID document.

Constructors

<init>

DID document

DidDoc(context: String = "https://w3id.org/did/v1", id: String, keys: List<DidDocKey>, authentications: List<DidDocAuthentication> = emptyList(), services: List<IndyAgentDidDocService> = emptyList())

Properties

authentications

list of authentication public keys

val authentications: List<DidDocAuthentication>

context

DID document context

val context: String

id

identifier of DID document

val id: String

keys

list of public keys available on the DID doc

val keys: List<DidDocKey>

services

list of services available on the did doc.

val services: List<IndyAgentDidDocService>

Companion Object Functions

create

Creates a DID document using the DID, verification key, routing keys and endpoint URI.

fun create(did: String, verificationKey: String, routingKeys: List<String>, endpointUri: String): DidDoc