Skip to main content
Module

x/jose/index.ts>GeneralSign

"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
class GeneralSign
import { GeneralSign } from "https://deno.land/x/jose@v4.14.4/index.ts";

The GeneralSign class is used to build and sign General JWS objects.

Constructors

new
GeneralSign(payload: Uint8Array)

Properties

private
_payload: Uint8Array
private
_signatures: IndividualSignature[]

Methods

addSignature(key: KeyLike | Uint8Array, options?: SignOptions): Signature

Adds an additional signature for the General JWS object.

sign(): Promise<GeneralJWS>

Signs and resolves the value of the General JWS object.