Class DidKey
-
- All Implemented Interfaces:
public final class DidKeyProvides 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 classDidKey.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringmethodNameprivate final Stringuriprivate final KeyManagerkeyManagerpublic final static DidKey.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetUri()The URI of the "did:key" which conforms to the DID standard. final KeyManagergetKeyManager()A KeyManager instance utilized to manage the cryptographic keys associated with the DID. final DidResolutionResultresolve()Resolves the current instance's uri to a DidResolutionResult, which contains the DID Document and possible related metadata. -
-
Method Detail
-
getKeyManager
final KeyManager getKeyManager()
A KeyManager instance utilized to manage the cryptographic keys associated with the DID.
-
resolve
final DidResolutionResult resolve()
Resolves the current instance's uri to a DidResolutionResult, which contains the DID Document and possible related metadata.
- Returns:
A DidResolutionResult instance containing the DID Document and related context.
-
-
-
-