Skip to main content
Latest
class jose.GeneralSign
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { GeneralSign } = jose;

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.