#[non_exhaustive]pub struct StaticKeyProvider { /* private fields */ }Expand description
In-memory KeyProvider for dev / non-regulated deployments.
Implementations§
Trait Implementations§
Source§impl KeyProvider for StaticKeyProvider
impl KeyProvider for StaticKeyProvider
Source§fn lookup(&self, tenant: &Option<TenantId>) -> Option<[u8; 32]>
fn lookup(&self, tenant: &Option<TenantId>) -> Option<[u8; 32]>
Resolve the tenant to a 32-byte AES-256 key.
None means
“key destroyed or unconfigured” — TenantKeyedCrypter raises
CrypterError::KeyDestroyed.Source§fn lookup_versioned(&self, tenant: &Option<TenantId>) -> Option<KeyMaterial>
fn lookup_versioned(&self, tenant: &Option<TenantId>) -> Option<KeyMaterial>
Versioned lookup. Returns key bytes and a monotonic version
counter that will be embedded in the ciphertext AAD. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more