Skip to main content
Version: 1.4

Class: JwsSignatureOptions

identity_wasm.JwsSignatureOptions

Table of contents

Constructors

Methods

Constructors

constructor

new JwsSignatureOptions(options?)

Parameters

NameType
options?IJwsSignatureOptions

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


setAttachJwk

setAttachJwk(value): void

Replace the value of the attachJwk field.

Parameters

NameType
valueboolean

Returns

void


setB64

setB64(value): void

Replace the value of the b64 field.

Parameters

NameType
valueboolean

Returns

void


setTyp

setTyp(value): void

Replace the value of the typ field.

Parameters

NameType
valuestring

Returns

void


setCty

setCty(value): void

Replace the value of the cty field.

Parameters

NameType
valuestring

Returns

void


serUrl

serUrl(value): void

Replace the value of the url field.

Parameters

NameType
valuestring

Returns

void


setNonce

setNonce(value): void

Replace the value of the nonce field.

Parameters

NameType
valuestring

Returns

void


setKid

setKid(value): void

Replace the value of the kid field.

Parameters

NameType
valuestring

Returns

void


setDetachedPayload

setDetachedPayload(value): void

Replace the value of the detached_payload field.

Parameters

NameType
valueboolean

Returns

void


setCustomHeaderParameters

setCustomHeaderParameters(value): void

Add additional header parameters.

Parameters

NameType
valueRecord\<string, any>

Returns

void


fromJSON

Static fromJSON(json): JwsSignatureOptions

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

JwsSignatureOptions


clone

clone(): JwsSignatureOptions

Deep clones the object.

Returns

JwsSignatureOptions