puppeteer
pdf
image
format
displayHeaderFooter
landscape
scale
margin
A4
true
false
0.8
top
right
bottom
left
1.2cm
1cm
1cm
1cm
quality
fullPage
100
false
Server Common SDK API - DidValidator
Date: 2024-09-02
Version: v1.0.0
Version
Date
History
v1.0.0
2024-09-02
Initial
Validates the format of the given DID string.
public static boolean isValidDid (String did )
Name
Type
Description
did
String
DID string to be verified
Type
Description
boolean
true if the DID is valid, otherwise false
String did = "did:omn:abcdefghijklmn" ;
boolean isValid = DidValidator .isValidDid (did ); // returns true if the DID is valid
Verifies the format of the given DID Key URL string.
public static boolean isValidDidKeyUrl (String didKeyUrl )
Name
Type
Description
didKeyUrl
String
DID Key URL string to be verified
Type
Description
boolean
true if valid, false otherwise
String didKeyUrl = "did:omn:raon?version=1#pin" ;
boolean isValid = DidValidator .isValidDidKeyUrl (didKeyUrl ); // returns true if the DID Key URL is valid