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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.