pub struct KeyLookupParams<'a> {
pub direct: Option<&'a KeyMaterial>,
pub jku: Option<&'a str>,
pub kid: Option<&'a str>,
pub registry_allowed: bool,
}Expand description
Parameters for a single key lookup. Built from config (serialize or deserialize) + optional header key. KeyProvider is only used via Registry registration; config never passes a provider.
Fields§
§direct: Option<&'a KeyMaterial>Directly provided key; takes precedence. When set, kid/jku are ignored.
jku: Option<&'a str>JWK Set URL for registry lookup (when no direct key).
kid: Option<&'a str>Key ID for registry lookup (when no direct key).
registry_allowed: boolWhether fallback to global registry is allowed.
Auto Trait Implementations§
impl<'a> Freeze for KeyLookupParams<'a>
impl<'a> RefUnwindSafe for KeyLookupParams<'a>
impl<'a> Send for KeyLookupParams<'a>
impl<'a> Sync for KeyLookupParams<'a>
impl<'a> Unpin for KeyLookupParams<'a>
impl<'a> UnsafeUnpin for KeyLookupParams<'a>
impl<'a> UnwindSafe for KeyLookupParams<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more