import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { GeneralEncrypt } = jose;
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.