struct

JWT::JWKS::JWK

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

JWK (JSON Web Key) structure

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

alg

Algorithm (RS256, ES256, etc.)

Source
alg=(alg : String | Nil)

Algorithm (RS256, ES256, etc.)

Source
crv

EC curve (P-256, P-384, P-521)

Source
crv=(crv : String | Nil)

EC curve (P-256, P-384, P-521)

Source
d=(d : String | Nil)

OKP key parameter (Ed25519 public key)

Source
d?

OKP key parameter (Ed25519 public key)

Source
e

RSA public key exponent

Source
e=(e : String | Nil)

RSA public key exponent

Source
key_ops

Key operations

Source
key_ops=(key_ops : Array(String) | Nil)

Key operations

Source
kid

Key ID

Source
kid=(kid : String)

Key ID

Source
kty

Key Type (RSA, EC, etc.)

Source
kty=(kty : String)

Key Type (RSA, EC, etc.)

Source
n

RSA public key modulus

Source
n=(n : String | Nil)

RSA public key modulus

Source
to_pem

Convert JWK to PEM format

Source
use

Public key use (sig, enc)

Source
use=(use : String | Nil)

Public key use (sig, enc)

Source
x

EC x coordinate

Source
x5t

X.509 certificate SHA-1 thumbprint

Source
x5t=(x5t : String | Nil)

X.509 certificate SHA-1 thumbprint

Source
x5t_s256

X.509 certificate SHA-256 thumbprint

Source
x5t_s256=(x5t_s256 : String | Nil)

X.509 certificate SHA-256 thumbprint

Source
x=(x : String | Nil)

EC x coordinate

Source
y

EC y coordinate

Source
y=(y : String | Nil)

EC y coordinate

Source