Package web5.sdk.dids
Class Did
-
- All Implemented Interfaces:
public final class DidRepresentation of a DID Core Identifier.
A
Didrepresents a Decentralized Identifier (DID), which uniquely identifies a subject (such as a person, organization, device, etc.). This class allows the parsing of a DID URI, as well as the transformation to and from Rust core data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDid.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringuriprivate final Stringurlprivate final Stringmethodprivate final Stringidprivate final Map<String, String>paramsprivate final Stringpathprivate final Stringqueryprivate final Stringfragmentpublic final static Did.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetUri()The complete DID URI. final StringgetUrl()The parsed URL associated with the DID. final StringgetMethod()The DID method (e.g. final StringgetId()The method-specific identifier of the DID. final Map<String, String>getParams()Optional method-specific parameters present in the DID URI. final StringgetPath()Optional path component in the DID URI. final StringgetQuery()Optional query component in the DID URI. final StringgetFragment()Optional fragment component in the DID URI. -
-
Method Detail
-
getMethod
final String getMethod()
The DID method (e.g.,
jwk,dht,web), which defines how the DID is resolved.
-
getParams
final Map<String, String> getParams()
Optional method-specific parameters present in the DID URI.
-
getFragment
final String getFragment()
Optional fragment component in the DID URI.
-
-
-
-