Class Service

  • All Implemented Interfaces:

    
    public final class Service
    
                        

    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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Service.Builder

      Builder object to build a Service.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getId() is the value of the id property and MUST be a URI conforming to RFC3986.
      final String getType() 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.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.