Package com.oceanprotocol.squid.models
Class DID
- java.lang.Object
-
- com.oceanprotocol.squid.models.DID
-
public class DID extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DID
builder()
static String
generateRandomToken()
String
getDid()
static DID
getFromHash(String hash)
String
getHash()
DID
setDid(String did)
DID
setEmptyDID()
String
toString()
-
-
-
Field Detail
-
did
public String did
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DID
public DID()
-
DID
public DID(String did) throws DIDFormatException
- Throws:
DIDFormatException
-
-
Method Detail
-
builder
public static DID builder() throws DIDFormatException
- Throws:
DIDFormatException
-
getFromHash
public static DID getFromHash(String hash) throws DIDFormatException
- Throws:
DIDFormatException
-
getDid
public String getDid()
-
getHash
public String getHash()
-
generateRandomToken
public static String generateRandomToken()
-
setEmptyDID
public DID setEmptyDID()
-
setDid
public DID setDid(String did) throws DIDFormatException
- Throws:
DIDFormatException
-
-