Files
2023-04-12 18:54:17 +02:00

2.5 KiB

Interface: JWK

💗 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", and "oct" key types are supported.

Table of contents

Properties

Properties

alg

• Optional alg: string

JWK "alg" (Algorithm) Parameter.


crv

• Optional crv: string


d

• Optional d: string


dp

• Optional dp: string


dq

• Optional dq: string


e

• Optional e: string


ext

• Optional ext: boolean

JWK "ext" (Extractable) Parameter.


k

• Optional k: string


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


oth

• Optional oth: { d?: string ; r?: string ; t?: string }[]


p

• Optional p: string


q

• Optional q: string


qi

• Optional qi: string


use

• Optional use: string

JWK "use" (Public Key Use) Parameter.


x

• Optional x: string


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

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


x5u

• Optional x5u: string

JWK "x5u" (X.509 URL) Parameter.


y

• Optional y: string