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

x/jose/index.ts>CompactEncrypt#setProtectedHeader

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

Sets the JWE Protected Header on the CompactEncrypt object.

Parameters

JWE Protected Header object.