pub struct StaticKeyProvider { /* private fields */ }Expand description
In-memory KeyProvider for tests and single-tenant deployments.
Banks running real workloads bring a backed implementation (KMS,
Vault, HSM).
Implementations§
Trait Implementations§
Source§impl Clone for StaticKeyProvider
impl Clone for StaticKeyProvider
Source§fn clone(&self) -> StaticKeyProvider
fn clone(&self) -> StaticKeyProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticKeyProvider
impl Debug for StaticKeyProvider
Source§impl Default for StaticKeyProvider
impl Default for StaticKeyProvider
Source§fn default() -> StaticKeyProvider
fn default() -> StaticKeyProvider
Returns the “default value” for a type. Read more
Source§impl KeyProvider for StaticKeyProvider
impl KeyProvider for StaticKeyProvider
Source§fn resolve_signing_key<'life0, 'life1, 'async_trait>(
&'life0 self,
kid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CoolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_signing_key<'life0, 'life1, 'async_trait>(
&'life0 self,
kid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CoolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the raw key bytes for the given
kid. For HMAC this is
the symmetric secret. Error if the key is unknown.Auto Trait Implementations§
impl Freeze for StaticKeyProvider
impl RefUnwindSafe for StaticKeyProvider
impl Send for StaticKeyProvider
impl Sync for StaticKeyProvider
impl Unpin for StaticKeyProvider
impl UnsafeUnpin for StaticKeyProvider
impl UnwindSafe for StaticKeyProvider
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