Skip to content

Latest commit

 

History

History
76 lines (43 loc) · 1.67 KB

jwe_general_encrypt.Recipient.md

File metadata and controls

76 lines (43 loc) · 1.67 KB

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

Recipient


done

done(): GeneralEncrypt

Returns the enclosing GeneralEncrypt

Returns

GeneralEncrypt


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.

Returns

Recipient