Class DidKey

  • All Implemented Interfaces:

    
    public final class DidKey
    
                        

    Provides a specific implementation for creating and resolving "did:key" method Decentralized Identifiers (DIDs).

    A "did:key" DID is a special type of DID that is formulated directly from a single public key. It's utilized in scenarios where it's beneficial for verifiable credentials, capabilities, or other assertions about a subject to be self-verifiable by third parties. This eradicates the necessity for a separate blockchain or ledger. Further specifics and technical details are outlined in the DID Key Spec.

    • Nested Class Summary

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

      Constructors 
      Constructor Description
      DidKey(String uri, KeyManager keyManager) Initializes a new instance of DidKey with the provided uri and keyManager.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getUri() The URI of the "did:key" which conforms to the DID standard.
      final KeyManager getKeyManager() A KeyManager instance utilized to manage the cryptographic keys associated with the DID.
      final DidResolutionResult resolve() Resolves the current instance's uri to a DidResolutionResult, which contains the DID Document and possible related metadata.
      • Methods inherited from class java.lang.Object

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

      • DidKey

        DidKey(String uri, KeyManager keyManager)
        Initializes a new instance of DidKey with the provided uri and keyManager.
    • Method Detail

      • getUri

         final String getUri()

        The URI of the "did:key" which conforms to the DID standard.

      • getKeyManager

         final KeyManager getKeyManager()

        A KeyManager instance utilized to manage the cryptographic keys associated with the DID.