Package org.consensusj.decentralizedid
Class Did
java.lang.Object
org.consensusj.decentralizedid.Did
- Direct Known Subclasses:
BtcrDid
Representation of a W3C DID
Based on java.net.URI with some inspiration from OkHttp.HttpUrl and use of Java 8-style `.of()` methods.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DID_SCHEME
-
didUri
-
-
Constructor Details
-
Did
-
-
Method Details
-
of
- Parameters:
uriString
- A string representing a DID URI- Returns:
- a valid DID
- Throws:
URISyntaxException
- If the URI string constructed from the given components violates RFC 2396
-
of
- Parameters:
didUri
- a DID URI- Returns:
- a valid DID
-
create
Create a DID from a known good string Similar to `java.net.url#create`- Parameters:
uriString
-- Returns:
- a valid DID
- Throws:
NullPointerException
- Ifstr
isnull
IllegalArgumentException
- If the given string violates RFC 2396
-
toURI
-
toString
-