MCPcopy
hub / github.com/panva/jose / Signature

Interface Signature

src/jws/general/sign.ts:13–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12/** Used to build General JWS object's individual signatures. */
13export interface Signature {
14 /**
15 * Sets the JWS Protected Header on the Signature object.
16 *
17 * @param protectedHeader JWS Protected Header.
18 */
19 setProtectedHeader(protectedHeader: types.JWSHeaderParameters): Signature
20
21 /**
22 * Sets the JWS Unprotected Header on the Signature object.
23 *
24 * @param unprotectedHeader JWS Unprotected Header.
25 */
26 setUnprotectedHeader(unprotectedHeader: types.JWSHeaderParameters): Signature
27
28 /** A shorthand for calling addSignature() on the enclosing {@link GeneralSign} instance */
29 addSignature(...args: Parameters<GeneralSign['addSignature']>): Signature
30
31 /** A shorthand for calling encrypt() on the enclosing {@link GeneralSign} instance */
32 sign(...args: Parameters<GeneralSign['sign']>): Promise<types.GeneralJWS>
33
34 /** Returns the enclosing {@link GeneralSign} instance */
35 done(): GeneralSign
36}
37
38class IndividualSignature implements Signature {
39 #parent: GeneralSign

Implementers 1

IndividualSignaturesrc/jws/general/sign.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…