Skip to content

SignJwsInput ​

SignJwsInput ​

Input for signCompactJws.

ts
interface SignJwsInput {
	readonly privateKey: CryptoKey;
	readonly algorithm: JwsAlgorithm;
	readonly payload: Uint8Array;
	readonly header?: JwsHeaderInput;
}

Properties

  • readonly privateKey: CryptoKey — A signing key matching the algorithm's RSA hash or ECDSA curve. RSA needs at least 2048 bits.
  • readonly algorithm: JwsAlgorithm — The signature algorithm.
  • readonly payload: Uint8Array — The payload bytes.
  • readonly header?: JwsHeaderInput — Header members beside alg.

Released under the MIT License.