| 11 | |
| 12 | /** Used to build General JWS object's individual signatures. */ |
| 13 | export 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 | |
| 38 | class IndividualSignature implements Signature { |
| 39 | #parent: GeneralSign |
no outgoing calls
no test coverage detected
searching dependent graphs…