Class: JwsSignatureOptions
identity_wasm.JwsSignatureOptions
Table of contents
Constructors
Methods
- toJSON
- toString
- setAttachJwk
- setB64
- setTyp
- setCty
- serUrl
- setNonce
- setKid
- setDetachedPayload
- setCustomHeaderParameters
- fromJSON
- clone
Constructors
constructor
• new JwsSignatureOptions(options?)
Parameters
| Name | Type |
|---|---|
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
| Name | Type |
|---|---|
value | boolean |
Returns
void
setB64
▸ setB64(value): void
Replace the value of the b64 field.
Parameters
| Name | Type |
|---|---|
value | boolean |
Returns
void
setTyp
▸ setTyp(value): void
Replace the value of the typ field.
Parameters
| Name | Type |
|---|---|
value | string |
Returns
void
setCty
▸ setCty(value): void
Replace the value of the cty field.
Parameters
| Name | Type |
|---|---|
value | string |
Returns
void
serUrl
▸ serUrl(value): void
Replace the value of the url field.
Parameters
| Name | Type |
|---|---|
value | string |
Returns
void
setNonce
▸ setNonce(value): void
Replace the value of the nonce field.
Parameters
| Name | Type |
|---|---|
value | string |
Returns
void
setKid
▸ setKid(value): void
Replace the value of the kid field.
Parameters
| Name | Type |
|---|---|
value | string |
Returns
void
setDetachedPayload
▸ setDetachedPayload(value): void
Replace the value of the detached_payload field.
Parameters
| Name | Type |
|---|---|
value | boolean |
Returns
void
setCustomHeaderParameters
▸ setCustomHeaderParameters(value): void
Add additional header parameters.
Parameters
| Name | Type |
|---|---|
value | Record\<string, any> |
Returns
void
fromJSON
▸ Static fromJSON(json): JwsSignatureOptions
Deserializes an instance from a JSON object.
Parameters
| Name | Type |
|---|---|
json | any |
Returns
clone
▸ clone(): JwsSignatureOptions
Deep clones the object.