Library API
    Preparing search index...

    Function importJWK

    • Imports a JSON Web Key (JWK) into a native Web Crypto API CryptoKey object. Supports RSA keys (RS256, RS384, RS512) and symmetric oct keys (HS256, HS384, HS512).

      Parameters

      • jwk: JsonWebKey

        The standard JsonWebKey object

      • Optionalusage: KeyUsage[]

        Optional explicit key usages

      • extractable: boolean = false

        Optional boolean indicating whether the key is extractable (default: false)

      Returns Promise<CryptoKey>

      A promise resolving to the imported CryptoKey