Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
▸ addSignature(...args
): Signature
A shorthand for calling addSignature() on the enclosing GeneralSign instance
Parameter | Type |
---|---|
...args |
[Uint8Array | KeyLike | JWK , SignOptions ] |
▸ done(): GeneralSign
Returns the enclosing GeneralSign
▸ setProtectedHeader(protectedHeader
): Signature
Sets the JWS Protected Header on the Signature object.
Parameter | Type | Description |
---|---|---|
protectedHeader |
JWSHeaderParameters |
JWS Protected Header. |
▸ setUnprotectedHeader(unprotectedHeader
): Signature
Sets the JWS Unprotected Header on the Signature object.
Parameter | Type | Description |
---|---|---|
unprotectedHeader |
JWSHeaderParameters |
JWS Unprotected Header. |
▸ sign(...args
): Promise
<GeneralJWS
>
A shorthand for calling encrypt() on the enclosing GeneralSign instance
Parameter | Type |
---|---|
...args |
[] |