Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jose/index.ts>GeneralEncrypt#setProtectedHeader

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
method GeneralEncrypt.prototype.setProtectedHeader
import { GeneralEncrypt } from "https://deno.land/x/jose@v4.14.2/index.ts";

Sets the JWE Protected Header on the GeneralEncrypt object.

Parameters

protectedHeader: JWEHeaderParameters

JWE Protected Header object.