DidCreationOptionsBuilder

Builder for DidCreationOptions.

Provides a fluent API for constructing DID creation options.

Example Usage:

val options = didCreationOptions {
algorithm = KeyAlgorithm.ED25519
forAuthentication()
forAssertion()
forKeyAgreement()
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Builds the options.

Link copied to clipboard

Adds assertion purpose (fluent method).

Link copied to clipboard

Adds authentication purpose (fluent method).

Link copied to clipboard

Adds capability delegation purpose (fluent method).

Link copied to clipboard

Adds capability invocation purpose (fluent method).

Link copied to clipboard

Adds key agreement purpose (fluent method).

Link copied to clipboard
fun property(key: String, value: Any?)

Adds a custom property.

Link copied to clipboard
fun purpose(purpose: KeyPurpose)

Adds a key purpose.

Link copied to clipboard
fun purposes(vararg purposes: KeyPurpose)

Adds multiple key purposes.