docs/jws/general/sign/interfaces/Signature.md
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.
Used to build General JWS object's individual signatures.
āø addSignature(...args): Signature
A shorthand for calling addSignature() on the enclosing GeneralSign instance
| Parameter | Type |
|---|---|
...args | [Uint8Array | CryptoKey | JWK | KeyObject, SignOptions] |
Signature
āø done(): GeneralSign
Returns the enclosing GeneralSign instance
āø setProtectedHeader(protectedHeader): Signature
Sets the JWS Protected Header on the Signature object.
| Parameter | Type | Description |
|---|---|---|
protectedHeader | JWSHeaderParameters | JWS Protected Header. |
Signature
āø setUnprotectedHeader(unprotectedHeader): Signature
Sets the JWS Unprotected Header on the Signature object.
| Parameter | Type | Description |
|---|---|---|
unprotectedHeader | JWSHeaderParameters | JWS Unprotected Header. |
Signature
āø sign(...args): Promise<GeneralJWS>
A shorthand for calling encrypt() on the enclosing GeneralSign instance
| Parameter | Type |
|---|---|
...args | [] |