pub trait RootKeyProvider {
// Required method
fn choose(&self, key_id: Option<u32>) -> Result<PublicKey, Format>;
}Expand description
Chooses a root public key to verify the token
In case of key rotation, it is possible to add a root key id
to the token with BiscuitBuilder::root_key_id. This
value will be passed to the implementor of RootKeyProvider
to choose which key will be used.
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".