Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/faster/vendor/jose/types.d.ts>JWK

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. For Deno Deploy and other enviroments!
Latest
interface JWK
implements JWKParameters
import { type JWK } from "https://deno.land/x/faster@v12.1/vendor/jose/types.d.ts";

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

Properties

optional
crv: string
  • EC JWK "crv" (Curve) Parameter
  • OKP JWK "crv" (The Subtype of Key Pair) Parameter
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
optional
dp: string

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

optional
dq: string

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

optional
e: string

RSA JWK "e" (Exponent) Parameter

optional
k: string

Oct JWK "k" (Key Value) Parameter

optional
n: string

RSA JWK "n" (Modulus) Parameter

optional
oth: Array<{ d?: string; r?: string; t?: string; }>

Private RSA JWK "oth" (Other Primes Info) Parameter

This parameter is not supported

optional
p: string

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

optional
q: string

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

optional
qi: string

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

optional
x: string
  • EC JWK "x" (X Coordinate) Parameter
  • OKP JWK "x" (The public key) Parameter
optional
y: string

EC JWK "y" (Y Coordinate) Parameter