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
Name | Type |
---|---|
key_id | string |
jwk | Jwk |
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
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
Name | Type |
---|---|
json | any |
Returns
clone
▸ clone(): JwkGenOutput
Deep clones the object.