Trait biscuit_auth::RootKeyProvider
source · 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::set_root_key_id
. This
value will be passed to the implementor of RootKeyProvider
to choose which key will be used.