Skip to main content
Version: 1.3

Class: JwkGenOutput

identity_wasm.JwkGenOutput

The result of a key generation in JwkStorage.

Table of contents

Constructors

Methods

Constructors

constructor

new JwkGenOutput(key_id, jwk)

Parameters

NameType
key_idstring
jwkJwk

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


jwk

jwk(): Jwk

Returns the generated public Jwk.

Returns

Jwk


keyId

keyId(): string

Returns the key id of the generated Jwk.

Returns

string


fromJSON

Static fromJSON(json): JwkGenOutput

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

JwkGenOutput


clone

clone(): JwkGenOutput

Deep clones the object.

Returns

JwkGenOutput