Class DidJwk

  • All Implemented Interfaces:

    
    public final class DidJwk
    
                        

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

    The "did:jwk" DID method derives a DID directly from a public key using the JSON Web Key (JWK) format. This allows the DID to be self-verifiable, without relying on a ledger or blockchain.

    • Nested Class Summary

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

      Constructors 
      Constructor Description
      DidJwk()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

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

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

      • DidJwk

        DidJwk()
    • Method Detail

      • resolve

         final static ResolutionResult resolve(String uri)

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

        This method resolves a DID URI by decoding the method-specific identifier (the public key) and constructing a DID document based on the JWK format.

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

        A ResolutionResult containing the DID document and related metadata.