Class DidWeb

  • All Implemented Interfaces:

    
    public final class DidWeb
    
                        

    Provides functionality for creating and resolving "did:web" method Decentralized Identifiers (DIDs).

    The "did:web" method uses web domains as the identifier, allowing DIDs to be hosted on web servers and leveraging the web's existing reputation system for decentralized identifiers.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class DidWeb.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      DidWeb()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ResolutionResult resolve(String uri) Resolves a "did:web" DID into a ResolutionResult.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DidWeb

        DidWeb()
    • Method Detail

      • resolve

         final static ResolutionResult resolve(String uri)

        Resolves a "did:web" DID into a ResolutionResult.

        This method resolves a DID URI by fetching the DID document from the associated web domain.

        Parameters:
        uri - The DID URI to resolve.
        Returns:

        A ResolutionResult containing the DID document and related metadata.