pub struct JwkKey {
pub kty: String,
pub key_use: Option<String>,
pub kid: String,
pub alg: Option<String>,
pub n: String,
pub e: String,
}Expand description
Individual JWK (JSON Web Key) from JWKS
Fields§
§kty: StringKey type (e.g., “RSA”)
key_use: Option<String>Public key use (e.g., “sig” for signature)
kid: StringKey ID for key rotation
alg: Option<String>Algorithm (e.g., “RS256”)
n: StringRSA modulus (base64url encoded)
e: StringRSA exponent (base64url encoded)
Implementations§
Source§impl JwkKey
impl JwkKey
Sourcepub fn to_decoding_key(&self) -> Result<DecodingKey, RunbeamError>
pub fn to_decoding_key(&self) -> Result<DecodingKey, RunbeamError>
Convert JWK to jsonwebtoken DecodingKey
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwkKey
impl<'de> Deserialize<'de> for JwkKey
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 JwkKey
impl RefUnwindSafe for JwkKey
impl Send for JwkKey
impl Sync for JwkKey
impl Unpin for JwkKey
impl UnwindSafe for JwkKey
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