pub struct StaticKeyResolver { /* private fields */ }Expand description
In-process key resolver backed by a static HashMap.
Load trusted keys at boot from a config file / KMS / environment
once; then look them up by key_id at verify time. For rotation,
hold multiple (key_id, key_bytes) pairs simultaneously and remove
retired ones on a schedule that exceeds the longest-lived bundle
retention period.
Implementations§
Trait Implementations§
Source§impl Default for StaticKeyResolver
impl Default for StaticKeyResolver
Source§fn default() -> StaticKeyResolver
fn default() -> StaticKeyResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StaticKeyResolver
impl RefUnwindSafe for StaticKeyResolver
impl Send for StaticKeyResolver
impl Sync for StaticKeyResolver
impl Unpin for StaticKeyResolver
impl UnsafeUnpin for StaticKeyResolver
impl UnwindSafe for StaticKeyResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more