import { EncryptJWT } from "https://dotland.deno.dev/x/jose@v4.15.0/jwt/encrypt.ts";
The EncryptJWT class is used to build and encrypt Compact JWE formatted JSON Web Tokens.
Properties
Methods
Encrypts and returns the JWT.
Sets a content encryption key to use, by default a random suitable one is generated for the JWE enc" (Encryption Algorithm) Header Parameter.
Sets the JWE Initialization Vector to use for content encryption, by default a random suitable one is generated for the JWE enc" (Encryption Algorithm) Header Parameter.
Sets the JWE Key Management parameters to be used when encrypting. Use of this is method is really only needed for ECDH based algorithms when utilizing the Agreement PartyUInfo or Agreement PartyVInfo parameters. Other parameters will always be randomly generated when needed and missing.
Sets the JWE Protected Header on the EncryptJWT object.