import { GeneralEncrypt } from "https://deno.land/x/jose@v4.14.1/index.ts";
The GeneralEncrypt class is used to build and encrypt General JWE objects.
Properties
private
_protectedHeader: JWEHeaderParametersprivate
_unprotectedHeader: JWEHeaderParametersMethods
addRecipient(key: KeyLike | Uint8Array, options?: CritOption): Recipient
Adds an additional recipient for the General JWE object.
encrypt(options?: DeflateOption): Promise<GeneralJWE>
Encrypts and resolves the value of the General JWE object.
setAdditionalAuthenticatedData(aad: Uint8Array)
Sets the Additional Authenticated Data on the GeneralEncrypt object.
setProtectedHeader(protectedHeader: JWEHeaderParameters): this
Sets the JWE Protected Header on the GeneralEncrypt object.