Service

data class Service(val id: String, val type: Array<String>, val serviceEndpoint: DIDDocument.ServiceEndpoint) : DIDDocumentCoreProperty(source)

Represents a Service, which is a capability or endpoint offered by a Decentralized Identifier (DID) or other subject or object. A Service consists of an ID, type, and service endpoint, as well as optional metadata such as a priority and a description. It is typically included in a DID Document and can be used to discover and interact with the associated DID or subject or object.

Constructors

Link copied to clipboard
constructor(id: String, type: Array<String>, serviceEndpoint: DIDDocument.ServiceEndpoint)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Determines whether the current object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for the Service object. The hash code is calculated based on the id, type, and serviceEndpoint properties.