Skip to main content
Module

x/jwe_cookie_map/src/deps.ts>jose.Recipient

Easy JWE Cookies for Deno
Latest
interface jose.Recipient
import { type jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { Recipient } = jose;

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