Skip to main content
Version: 1.4

Class: JwsVerificationOptions

identity_wasm.JwsVerificationOptions

Table of contents

Constructors

Methods

Constructors

constructor

new JwsVerificationOptions(options?)

Creates a new JwsVerificationOptions from the given fields.

Parameters

NameType
options?IJwsVerificationOptions

Methods

toJSON

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object

toJSON(): any

Serializes this to a JSON object.

Returns

any


toString

toString(): string

Return stringified version of self.

Returns

string


setNonce

setNonce(value): void

Set the expected value for the nonce parameter of the protected header.

Parameters

NameType
valuestring

Returns

void


setMethodScope

setMethodScope(value): void

Set the scope of the verification methods that may be used to verify the given JWS.

Parameters

NameType
valueMethodScope

Returns

void


setMethodId

setMethodId(value): void

Set the DID URl of the method, whose JWK should be used to verify the JWS.

Parameters

NameType
valueDIDUrl

Returns

void


fromJSON

Static fromJSON(json): JwsVerificationOptions

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

JwsVerificationOptions


clone

clone(): JwsVerificationOptions

Deep clones the object.

Returns

JwsVerificationOptions