Interface: JWK

March 19, 2026 · View on GitHub

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.

JSON Web Key (JWK). "RSA", "EC", "OKP", "AKP", and "oct" key types are supported.

See

Properties

alg?

• optional alg?: string

JWK "alg" (Algorithm) Parameter

See

Algorithm Key Requirements


crv?

• optional crv?: string

  • EC JWK "crv" (Curve) Parameter
  • OKP JWK "crv" (The Subtype of Key Pair) Parameter

d?

• optional d?: string

  • Private RSA JWK "d" (Private Exponent) Parameter
  • Private EC JWK "d" (ECC Private Key) Parameter
  • Private OKP JWK "d" (The Private Key) Parameter

dp?

• optional dp?: string

Private RSA JWK "dp" (First Factor CRT Exponent) Parameter


dq?

• optional dq?: string

Private RSA JWK "dq" (Second Factor CRT Exponent) Parameter


e?

• optional e?: string

RSA JWK "e" (Exponent) Parameter


ext?

• optional ext?: boolean

JWK "ext" (Extractable) Parameter


k?

• optional k?: string

Oct JWK "k" (Key Value) Parameter


key_ops?

• optional key_ops?: string[]

JWK "key_ops" (Key Operations) Parameter


kid?

• optional kid?: string

JWK "kid" (Key ID) Parameter


kty?

• optional kty?: string

JWK "kty" (Key Type) Parameter


n?

• optional n?: string

RSA JWK "n" (Modulus) Parameter


p?

• optional p?: string

Private RSA JWK "p" (First Prime Factor) Parameter


priv?

• optional priv?: string

AKP JWK "priv" (Private key) Parameter


pub?

• optional pub?: string

AKP JWK "pub" (Public Key) Parameter


q?

• optional q?: string

Private RSA JWK "q" (Second Prime Factor) Parameter


qi?

• optional qi?: string

Private RSA JWK "qi" (First CRT Coefficient) Parameter


use?

• optional use?: string

JWK "use" (Public Key Use) Parameter


x?

• optional x?: string

  • EC JWK "x" (X Coordinate) Parameter
  • OKP JWK "x" (The public key) Parameter

x5c?

• optional x5c?: string[]

JWK "x5c" (X.509 Certificate Chain) Parameter


x5t?

• optional x5t?: string

JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter


x5t#S256?

• optional x5t#S256?: string

JWK "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter


x5u?

• optional x5u?: string

JWK "x5u" (X.509 URL) Parameter


y?

• optional y?: string

EC JWK "y" (Y Coordinate) Parameter