JsonWebKeySetProvider

Trait JsonWebKeySetProvider 

Source
pub trait JsonWebKeySetProvider:
    Clone
    + Send
    + Sync
    + 'static {
    type Error: Error + 'static;

    // Required method
    fn fetch(
        &self,
    ) -> impl Future<Output = Result<JsonWebKeySet, Self::Error>> + Send + Sync;
}
Expand description

Trait to wrap fetching a JSON web key set.

Required Associated Types§

Source

type Error: Error + 'static

The error type from the fetch operation.

Required Methods§

Source

fn fetch( &self, ) -> impl Future<Output = Result<JsonWebKeySet, Self::Error>> + Send + Sync

Fetch from the JSON web key set.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§