pub struct JwtValidator { /* private fields */ }Expand description
Verifies bearer JWTs against a configured key source, enforcing the configured algorithm,
issuer, audience, and expiry/leeway. The token’s own alg header is never trusted to
pick the algorithm — Validation is pinned to the single configured algorithm, closing
the alg=none/HS-vs-RS confusion class of attacks.
Implementations§
Auto Trait Implementations§
impl !Freeze for JwtValidator
impl !RefUnwindSafe for JwtValidator
impl !UnwindSafe for JwtValidator
impl Send for JwtValidator
impl Sync for JwtValidator
impl Unpin for JwtValidator
impl UnsafeUnpin for JwtValidator
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