Skip to main content
Module

x/jose/index.ts>Recipient

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
interface Recipient
import { type Recipient } from "https://deno.land/x/jose@v4.8.3/index.ts";

Methods

setUnprotectedHeader(unprotectedHeader: JWEHeaderParameters): Recipient

Sets the JWE Per-Recipient Unprotected Header on the Recipient object.

addRecipient(...args: Parameters<GeneralEncrypt["addRecipient"]>): Recipient

A shorthand for calling addRecipient() on the enclosing GeneralEncrypt instance

encrypt(...args: Parameters<GeneralEncrypt["encrypt"]>): Promise<GeneralJWE>

A shorthand for calling encrypt() on the enclosing GeneralEncrypt instance

Returns the enclosing GeneralEncrypt