struct JWT::JWKS::JWK

Overview

JWK (JSON Web Key) structure

Included Modules

Defined in:

jwt/jwks/jwk.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def alg : String | Nil #

Algorithm (RS256, ES256, etc.)


[View source]
def alg=(alg : String | Nil) #

Algorithm (RS256, ES256, etc.)


[View source]
def crv : String | Nil #

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


[View source]
def crv=(crv : String | Nil) #

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


[View source]
def d=(d : String | Nil) #

OKP key parameter (Ed25519 public key)


[View source]
def d? : String | Nil #

OKP key parameter (Ed25519 public key)


[View source]
def e : String | Nil #

RSA public key exponent


[View source]
def e=(e : String | Nil) #

RSA public key exponent


[View source]
def key_ops : Array(String) | Nil #

Key operations


[View source]
def key_ops=(key_ops : Array(String) | Nil) #

Key operations


[View source]
def kid : String #

Key ID


[View source]
def kid=(kid : String) #

Key ID


[View source]
def kty : String #

Key Type (RSA, EC, etc.)


[View source]
def kty=(kty : String) #

Key Type (RSA, EC, etc.)


[View source]
def n : String | Nil #

RSA public key modulus


[View source]
def n=(n : String | Nil) #

RSA public key modulus


[View source]
def to_pem : String #

Convert JWK to PEM format


[View source]
def use : String | Nil #

Public key use (sig, enc)


[View source]
def use=(use : String | Nil) #

Public key use (sig, enc)


[View source]
def x : String | Nil #

EC x coordinate


[View source]
def x5t : String | Nil #

X.509 certificate SHA-1 thumbprint


[View source]
def x5t=(x5t : String | Nil) #

X.509 certificate SHA-1 thumbprint


[View source]
def x5t_s256 : String | Nil #

X.509 certificate SHA-256 thumbprint


[View source]
def x5t_s256=(x5t_s256 : String | Nil) #

X.509 certificate SHA-256 thumbprint


[View source]
def x=(x : String | Nil) #

EC x coordinate


[View source]
def y : String | Nil #

EC y coordinate


[View source]
def y=(y : String | Nil) #

EC y coordinate


[View source]