pub struct Jwk {
pub kty: String,
pub alg: String,
pub use_: String,
pub kid: String,
pub n: String,
pub e: String,
}Expand description
Single JWK entry for the JWKS doc. Pylon currently only emits one RSA key at a time but the JWKS array shape lets you rotate (publish old + new together for one signing-window) without breaking in-flight tokens.
Fields§
§kty: String§alg: String§use_: String§kid: String§n: StringModulus, base64url-no-pad. RSA-only.
e: StringExponent, base64url-no-pad. RSA-only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Jwk
impl<'de> Deserialize<'de> for Jwk
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 Jwk
impl RefUnwindSafe for Jwk
impl Send for Jwk
impl Sync for Jwk
impl Unpin for Jwk
impl UnsafeUnpin for Jwk
impl UnwindSafe for Jwk
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