Package web5.sdk.dids.didcore
Class Service
-
- All Implemented Interfaces:
public final class ServiceService 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classService.BuilderBuilder object to build a Service.
-
Method Summary
Modifier and Type Method Description final StringgetId()is the value of the id property and MUST be a URI conforming to RFC3986. final StringgetType()is an example of registered types which can be found here: https://www.w3. final List<String>getServiceEndpoint()is a network address, such as an HTTP URL, at which services operate on behalf of a DID subject. StringtoString()-
-
Method Detail
-
getId
final String getId()
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.
-
getType
final String getType()
is an example of registered types which can be found here: https://www.w3.org/TR/did-spec-registries/#service-types
-
getServiceEndpoint
final List<String> getServiceEndpoint()
is a network address, such as an HTTP URL, at which services operate on behalf of a DID subject.
-
-
-
-