VerificationMethod

class VerificationMethod(val id: String, val type: String, val controller: String, val publicKeyJwk: Jwk? = null)

VerificationMethod expresses verification methods, such as cryptographic public keys, which can be used to authenticate or authorize interactions with the DID subject or associated parties. For example, a cryptographic public key can be used as a verification method with respect to a digital signature; in such usage, it verifies that the signer could use the associated cryptographic private key. Specification Reference: https://www.w3.org/TR/did-core/#verification-methods

Constructors

Link copied to clipboard
constructor(id: String, type: String, controller: String, publicKeyJwk: Jwk? = null)

Types

Link copied to clipboard
class Builder

Builder object to build a VerificationMethod.

Properties

Link copied to clipboard

a value that conforms to the rules in DID Syntax: https://www.w3.org/TR/did-core/#did-syntax

Link copied to clipboard
val id: String

id of the VerificationMethod

Link copied to clipboard
val publicKeyJwk: Jwk? = null

specification reference: https://www.w3.org/TR/did-core/#dfn-publickeyjwk

Link copied to clipboard

references exactly one verification method type. In order to maximize global interoperability, the verification method type SHOULD be registered in the DID Specification Registries: https://www.w3.org/TR/did-spec-registries/

Functions

Link copied to clipboard
fun isType(type: String): Boolean

Checks type of VerificationMethod.

Link copied to clipboard
open override fun toString(): String