JwsSignatureOptions
@iota/identity-wasm API documentation
Class: JwsSignatureOptions
Options for creating a JSON Web Signature.
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
setAttachJwk()
setAttachJwk(
value):void
Replace the value of the attachJwk field.
Parameters
value
boolean
Returns
void
setB64()
setB64(
value):void
Replace the value of the b64 field.
Parameters
value
boolean
Returns
void
setTyp()
setTyp(
value):void
Replace the value of the typ field.
Parameters
value
string
Returns
void
setCty()
setCty(
value):void
Replace the value of the cty field.
Parameters
value
string
Returns
void
serUrl()
serUrl(
value):void
Replace the value of the url field.
Parameters
value
string
Returns
void
setNonce()
setNonce(
value):void
Replace the value of the nonce field.
Parameters
value
string
Returns
void
setKid()
setKid(
value):void
Replace the value of the kid field.
Parameters
value
string
Returns
void
setDetachedPayload()
setDetachedPayload(
value):void
Replace the value of the detached_payload field.
Parameters
value
boolean
Returns
void
setCustomHeaderParameters()
setCustomHeaderParameters(
value):void
Add additional header parameters.
Parameters
value
Record<string, any>
Returns
void
fromJSON()
staticfromJSON(json):JwsSignatureOptions
Deserializes an instance from a JSON object.
Parameters
json
any
Returns
clone()
clone():
JwsSignatureOptions
Deep clones the object.