Package web5.sdk.dids.did
Class PortableDid
-
- All Implemented Interfaces:
public final class PortableDidPortableDid is a serializable BearerDid that documents the key material and metadata of a Decentralized Identifier (DID) to enable usage of the DID in different contexts.
This format is useful for exporting, saving to a file, or importing a DID across process boundaries or between different DID method implementations.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringuriprivate final List<Jwk>privateKeysprivate final DidDocumentdocumentprivate final Map<String, Object>metadata
-
Constructor Summary
Constructors Constructor Description PortableDid(String uri, List<Jwk> privateKeys, DidDocument document, Map<String, Object> metadata)
-
Method Summary
Modifier and Type Method Description final StringgetUri()The URI of the DID. final List<Jwk>getPrivateKeys()The private keys associated with the PortableDid. final DidDocumentgetDocument()The DID Document associated with the PortableDid. final Map<String, Object>getMetadata()Additional metadata associated with the PortableDid. -
-
Method Detail
-
getPrivateKeys
final List<Jwk> getPrivateKeys()
The private keys associated with the PortableDid.
-
getDocument
final DidDocument getDocument()
The DID Document associated with the PortableDid.
-
getMetadata
final Map<String, Object> getMetadata()
Additional metadata associated with the PortableDid.
-
-
-
-