Skip to main content

KeyResolver

Trait KeyResolver 

Source
pub trait KeyResolver: Send + Sync {
    // Required method
    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;
}
Expand description

Finds an issuer’s signing keys.

Required Methods§

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,

The keys issuer publishes through its dwk metadata document.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§