Struct auth0_rs::JsonWebKey [−][src]
pub struct JsonWebKey { pub alg: String, pub kty: String, pub key_use: String, pub x5c: Option<Vec<String>>, pub n: String, pub e: String, pub kid: String, pub x5t: Option<String>, }
Expand description
JSON Web Key struct.
Official documentation of the JSON Web Key format from Auth0: https://auth0.com/docs/tokens/json-web-tokens/json-web-key-set-properties
Fields
alg: String
The specific cryptographic algorithm used with the key.
kty: String
The family of cryptographic algorithms used with the key.
key_use: String
How the key was meant to be used; sig represents the signature.
x5c: Option<Vec<String>>
The x.509 certificate chain. The first entry in the array is the certificate to use for token verification; the other certificates can be used to verify this first certificate.
n: String
The modulus for the RSA public key.
e: String
The exponent for the RSA public key.
kid: String
The unique identifier for the key.
x5t: Option<String>
The thumbprint of the x.509 cert (SHA-1 thumbprint).
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for JsonWebKey
impl Send for JsonWebKey
impl Sync for JsonWebKey
impl Unpin for JsonWebKey
impl UnwindSafe for JsonWebKey
Blanket Implementations
Mutably borrows from an owned value. Read more