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§
Source§impl Clone for JsonWebKey
impl Clone for JsonWebKey
Source§fn clone(&self) -> JsonWebKey
fn clone(&self) -> JsonWebKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonWebKey
impl Debug for JsonWebKey
Source§impl<'de> Deserialize<'de> for JsonWebKey
impl<'de> Deserialize<'de> for JsonWebKey
Source§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 Freeze for JsonWebKey
impl RefUnwindSafe for JsonWebKey
impl Send for JsonWebKey
impl Sync for JsonWebKey
impl Unpin for JsonWebKey
impl UnwindSafe for JsonWebKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more