mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
2.1 KiB
2.1 KiB
Interface: Recipient
💗 Help the project
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.
Table of contents
Methods
Methods
addRecipient
â–¸ addRecipient(...args): Recipient
A shorthand for calling addRecipient() on the enclosing GeneralEncrypt instance
Parameters
| Name | Type |
|---|---|
...args |
[key: Uint8Array | KeyLike, options?: CritOption] |
Returns
done
â–¸ done(): GeneralEncrypt
Returns the enclosing GeneralEncrypt
Returns
encrypt
â–¸ encrypt(...args): Promise<GeneralJWE>
A shorthand for calling encrypt() on the enclosing GeneralEncrypt instance
Parameters
| Name | Type |
|---|---|
...args |
[options?: DeflateOption] |
Returns
setUnprotectedHeader
â–¸ setUnprotectedHeader(unprotectedHeader): Recipient
Sets the JWE Per-Recipient Unprotected Header on the Recipient object.
Parameters
| Name | Type | Description |
|---|---|---|
unprotectedHeader |
JWEHeaderParameters |
JWE Per-Recipient Unprotected Header. |