import { GeneralEncrypt } from "https://deno.land/x/jose@v5.9.6/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'
.
Properties
private
_protectedHeader: JWEHeaderParametersprivate
_unprotectedHeader: JWEHeaderParametersMethods
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.