▸ addRecipient(...args
): Recipient
A shorthand for calling addRecipient() on the enclosing GeneralEncrypt instance
Name | Type |
---|---|
...args |
[key: KeyLike | Uint8Array, options?: CritOption] |
▸ done(): GeneralEncrypt
Returns the enclosing GeneralEncrypt
▸ encrypt(...args
): Promise
<GeneralJWE
>
A shorthand for calling encrypt() on the enclosing GeneralEncrypt instance
Name | Type |
---|---|
...args |
[options?: DeflateOption] |
Promise
<GeneralJWE
>
▸ setUnprotectedHeader(unprotectedHeader
): Recipient
Sets the JWE Per-Recipient Unprotected Header on the Recipient object.
Name | Type | Description |
---|---|---|
unprotectedHeader |
JWEHeaderParameters |
JWE Per-Recipient Unprotected Header. |