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

Interface GenerateSecretOptions

src/key/generate_secret.ts:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11/** Secret generation function options. */
12export interface GenerateSecretOptions {
13 /**
14 * The value to use as {@link !SubtleCrypto.generateKey} `extractable` argument. Default is false.
15 *
16 * > [!NOTE]\
17 * > Because A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 secrets cannot be represented as
18 * > {@link !CryptoKey} this option has no effect for them.
19 */
20 extractable?: boolean
21}
22
23/**
24 * Generates a symmetric secret key for a given JWA algorithm identifier.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…