Skip to content

DecryptJweOptions ​

DecryptJweOptions ​

Input policy for decryptCompactJwe; neither allowlist is inferred from the token.

ts
interface DecryptJweOptions {
	readonly privateKey: CryptoKey;
	readonly keyManagementAlgorithms: readonly [JweAlgorithm, undefined];
	readonly contentEncryptionAlgorithms: readonly [JweEncryption, undefined];
	readonly limits?: Partial<JoseLimits>;
}

Properties

  • readonly privateKey: CryptoKey — An RSA-OAEP/SHA-512 private key with decrypt usage, 2048–8192 bits.
  • readonly keyManagementAlgorithms: readonly [JweAlgorithm, undefined] — Accepted key-management algorithms for this application.
  • readonly contentEncryptionAlgorithms: readonly [JweEncryption, undefined] — Accepted content-encryption algorithms for this application.
  • readonly limits?: Partial<JoseLimits> — Bounds with the same meaning as EncryptJweInput.limits.

Released under the MIT License.