pub trait IssuerKeys: Send + Sync {
// Required method
fn key<'a>(
&'a self,
kid: &'a str,
) -> BoxFuture<'a, Result<Option<VerifyingKey>, KeysUnavailable>>;
}Expand description
An issuer’s token signing keys, looked up by kid.
Required Methods§
Sourcefn key<'a>(
&'a self,
kid: &'a str,
) -> BoxFuture<'a, Result<Option<VerifyingKey>, KeysUnavailable>>
fn key<'a>( &'a self, kid: &'a str, ) -> BoxFuture<'a, Result<Option<VerifyingKey>, KeysUnavailable>>
Resolves kid. Returns Ok(None) when the issuer has no such key and
KeysUnavailable when the keys cannot be obtained at all.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".