Skip to main content

MethodType

@iota/identity-wasm API documentation


Class: MethodType

Supported verification method types.

Methods​

toJSON()​

Call Signature​

toJSON(): Object

  • Return copy of self without private attributes.
Returns​

Object

Call Signature​

toJSON(): any

Serializes this to a JSON object.

Returns​

any


toString()​

Call Signature​

toString(): string

Return stringified version of self.

Returns​

string

Call Signature​

toString(): string

Returns the MethodType as a string.

Returns​

string


JsonWebKey()​

static JsonWebKey(): MethodType

Returns​

MethodType

Deprecated​

Use JsonWebKey2020 instead.


JsonWebKey2020()​

static JsonWebKey2020(): MethodType

A verification method for use with JWT verification as prescribed by the Jwk in the publicKeyJwk entry.

Returns​

MethodType


custom()​

static custom(type_): MethodType

A custom method.

Parameters​

type_​

string

Returns​

MethodType


fromJSON()​

static fromJSON(json): MethodType

Deserializes an instance from a JSON object.

Parameters​

json​

any

Returns​

MethodType


clone()​

clone(): MethodType

Deep clones the object.

Returns​

MethodType