pub enum Strategy {
Automatic,
Manual(Settings),
}Expand description
Determines the JWKS Caching behavior of the validator
Variants§
Automatic
The Reccomended Option. Determines Settings from the cache-control header on a per request basis. Allows for dynamic updating of the cache duration during run time. If no cache-control headers are present, a lazy 1 second polling interval on the JWKS will be used.
Manual(Settings)
Use a static Settings for the lifetime of the program. Ignores cache-control directives Not recommended unless you are really sure that you know this will be the correct option This option could potentially introduce a security vulnerability if the JWKS has changed, and the value was set too high.
Trait Implementations§
impl Copy for Strategy
impl Eq for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.