pub struct SecurityConfig {
pub jwks_url: String,
pub issuer: String,
pub audience: String,
pub jwks_cache_ttl_secs: u64,
}Expand description
Security configuration for JWT validation and JWKS cache.
Fields§
§jwks_url: StringURL of the JWKS endpoint (e.g., https://auth.example.com/.well-known/jwks.json)
issuer: StringExpected issuer in the “iss” claim
audience: StringExpected audience in the “aud” claim
jwks_cache_ttl_secs: u64JWKS cache TTL in seconds (default: 3600)
Implementations§
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 moreAuto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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