import { GeneralEncrypt } from "https://deno.land/x/faster@v12.1/vendor/jose/jwe/general/encrypt.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'
.
Methods
addRecipient(key: KeyLike | Uint8Array, options?: CritOption): Recipient
Adds an additional recipient for the General JWE object.
encrypt(): Promise<GeneralJWE>
Encrypts and resolves the value of 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.