JwsVerificationOptions
@iota/identity-wasm API documentation
Class: JwsVerificationOptions
Holds additional options for verifying a JWS with CoreDocument.verifyJws.
Constructors
new JwsVerificationOptions()
new JwsVerificationOptions(
options?):JwsVerificationOptions
Creates a new JwsVerificationOptions from the given fields.
Parameters
options?
null | IJwsVerificationOptions
Returns
Methods
toJSON()
Call Signature
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
Call Signature
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
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
value
Returns
void
setMethodId()
setMethodId(
value):void
Set the DID URl of the method, whose JWK should be used to verify the JWS.
Parameters
value
Returns
void
fromJSON()
staticfromJSON(json):JwsVerificationOptions
Deserializes an instance from a JSON object.
Parameters
json
any
Returns
clone()
clone():
JwsVerificationOptions
Deep clones the object.