mirror of
https://github.com/danbulant/jose
synced 2026-05-19 04:18:52 +00:00
1.7 KiB
1.7 KiB
Interface: Recipient
Table of contents
Methods
Methods
addRecipient
▸ addRecipient(...args): Recipient
A shorthand for calling addRecipient() on the enclosing GeneralEncrypt instance
Parameters
| Name | Type |
|---|---|
...args |
[key: KeyLike | Uint8Array, 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
Promise<GeneralJWE>
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. |