Builder
class Builder
Builder object to build a DidDocument.
Functions
Link copied to clipboard
Sets AlsoknownAses.
Link copied to clipboard
Builds DidDocument after validating the required fields.
Link copied to clipboard
Sets Context to the DidDocument.
Link copied to clipboard
Sets Controllers.
Link copied to clipboard
Adds Id to the DidDocument.
Link copied to clipboard
Sets Services.
Link copied to clipboard
fun verificationMethodForPurposes(method: VerificationMethod, purposes: List<Purpose> = emptyList()): DidDocument.Builder
Add verification method adds a verification method to the document. If Purposes are provided, the verification method's ID will be added to the corresponding list of purposes.
Link copied to clipboard
fun verificationMethodIdsForPurpose(methodIds: MutableList<String>?, purpose: Purpose): DidDocument.Builder
Adds VerificationMethods for a single purpose.