pub struct JwksResolver { /* private fields */ }Expand description
Discovery over a Fetch, caching each issuer’s keys for ten minutes
(see JwksResolver::with_ttl).
Only a server identifier is looked up. Its document must name it as
issuer, exactly (RFC 8414 §3.3): otherwise a document served at
someone’s well-known path by misconfigured hosting could vouch for keys
that are not theirs. A jwks_uri must be on the issuer’s own origin.
Implementations§
Trait Implementations§
Source§impl Debug for JwksResolver
impl Debug for JwksResolver
Source§impl KeyResolver for JwksResolver
impl KeyResolver for JwksResolver
Source§fn jwks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
dwk: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Jwks>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn jwks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
dwk: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Jwks>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
The keys
issuer publishes through its dwk metadata document.Auto Trait Implementations§
impl !Freeze for JwksResolver
impl !RefUnwindSafe for JwksResolver
impl !UnwindSafe for JwksResolver
impl Send for JwksResolver
impl Sync for JwksResolver
impl Unpin for JwksResolver
impl UnsafeUnpin for JwksResolver
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