struct
JWT::JWKS::JWK
- JWT::JWKS::JWK
- Struct
- Value
- Object
Overview
JWK (JSON Web Key) structure
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
Defined in:
jwt/jwks/jwk.crConstructors
Instance Method Summary
-
#alg : String | Nil
Algorithm (RS256, ES256, etc.)
-
#alg=(alg : String | Nil)
Algorithm (RS256, ES256, etc.)
-
#crv : String | Nil
EC curve (P-256, P-384, P-521)
-
#crv=(crv : String | Nil)
EC curve (P-256, P-384, P-521)
-
#d=(d : String | Nil)
OKP key parameter (Ed25519 public key)
-
#d? : String | Nil
OKP key parameter (Ed25519 public key)
-
#e : String | Nil
RSA public key exponent
-
#e=(e : String | Nil)
RSA public key exponent
-
#key_ops : Array(String) | Nil
Key operations
-
#key_ops=(key_ops : Array(String) | Nil)
Key operations
-
#kid : String
Key ID
-
#kid=(kid : String)
Key ID
-
#kty : String
Key Type (RSA, EC, etc.)
-
#kty=(kty : String)
Key Type (RSA, EC, etc.)
-
#n : String | Nil
RSA public key modulus
-
#n=(n : String | Nil)
RSA public key modulus
-
#to_pem : String
Convert JWK to PEM format
-
#use : String | Nil
Public key use (sig, enc)
-
#use=(use : String | Nil)
Public key use (sig, enc)
-
#x : String | Nil
EC x coordinate
-
#x5t : String | Nil
X.509 certificate SHA-1 thumbprint
-
#x5t=(x5t : String | Nil)
X.509 certificate SHA-1 thumbprint
-
#x5t_s256 : String | Nil
X.509 certificate SHA-256 thumbprint
-
#x5t_s256=(x5t_s256 : String | Nil)
X.509 certificate SHA-256 thumbprint
-
#x=(x : String | Nil)
EC x coordinate
-
#y : String | Nil
EC y coordinate
-
#y=(y : String | Nil)
EC y coordinate