Service

class Service(val id: String, val type: String, val serviceEndpoint: List<String>)

Service is used in DID documents to express ways of communicating with the DID subject or associated entities. A service can be any type of service the DID subject wants to advertise. Service spec: https://www.w3.org/TR/did-core/#services

Constructors

Link copied to clipboard
constructor(id: String, type: String, serviceEndpoint: List<String>)

Types

Link copied to clipboard
class Builder

Builder object to build a Service.

Properties

Link copied to clipboard
val id: String

is the value of the id property and MUST be a URI conforming to RFC3986. A conforming producer MUST NOT produce multiple service entries with the same id. A conforming consumer MUST produce an error if it detects multiple service entries with the same id.

Link copied to clipboard

is a network address, such as an HTTP URL, at which services operate on behalf of a DID subject.

Link copied to clipboard

is an example of registered types which can be found here: https://www.w3.org/TR/did-spec-registries/#service-types

Functions

Link copied to clipboard
open override fun toString(): String