Class: JwsVerificationOptions
identity_wasm.JwsVerificationOptions
Table of contents
Constructors
Methods
Constructors
constructor
• new JwsVerificationOptions(options?)
Creates a new JwsVerificationOptions from the given fields.
Parameters
| Name | Type |
|---|---|
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
| Name | Type |
|---|---|
value | string |
Returns
void
setMethodScope
▸ setMethodScope(value): void
Set the scope of the verification methods that may be used to verify the given JWS.
Parameters
| Name | Type |
|---|---|
value | MethodScope |
Returns
void
setMethodId
▸ setMethodId(value): void
Set the DID URl of the method, whose JWK should be used to verify the JWS.
Parameters
| Name | Type |
|---|---|
value | DIDUrl |
Returns
void
fromJSON
▸ Static fromJSON(json): JwsVerificationOptions
Deserializes an instance from a JSON object.
Parameters
| Name | Type |
|---|---|
json | any |
Returns
clone
▸ clone(): JwsVerificationOptions
Deep clones the object.