import { GeneralEncrypt } from "https://dotland.deno.dev/x/jose@v5.9.6/index.ts";
The GeneralEncrypt class is used to build and encrypt General JWE objects.
This class is exported (as a named export) from the main 'jose'
module entry point as well as
from its subpath export 'jose/jwe/general/encrypt'
.
Properties
private
_protectedHeader: JWEHeaderParametersprivate
_unprotectedHeader: JWEHeaderParametersMethods
addRecipient(key: KeyLike | Uint8Array, options?: CritOption): Recipient
Adds an additional recipient for the General JWE object.
setAdditionalAuthenticatedData(aad: Uint8Array): this
Sets the Additional Authenticated Data on the GeneralEncrypt object.
setProtectedHeader(protectedHeader: JWEHeaderParameters): this
Sets the JWE Protected Header on the GeneralEncrypt object.