pub struct DntSecretKeyProvider<R> { /* private fields */ }Expand description
DNT key provider backed by an existing AppCore secret resolver.
Implementations§
Source§impl<R> DntSecretKeyProvider<R>where
R: SecretResolver,
impl<R> DntSecretKeyProvider<R>where
R: SecretResolver,
Sourcepub fn with_policy(resolver: R, policy: DntSecretRefPolicy) -> Self
pub fn with_policy(resolver: R, policy: DntSecretRefPolicy) -> Self
Creates a provider using an explicit reference mapping policy.
Sourcepub fn policy(&self) -> &DntSecretRefPolicy
pub fn policy(&self) -> &DntSecretRefPolicy
Returns the configured non-secret key-reference mapping policy.
Trait Implementations§
Source§impl<R> Debug for DntSecretKeyProvider<R>
impl<R> Debug for DntSecretKeyProvider<R>
Source§impl<R> DntKeyProvider for DntSecretKeyProvider<R>where
R: SecretResolver,
impl<R> DntKeyProvider for DntSecretKeyProvider<R>where
R: SecretResolver,
Source§fn resolve_key(
&self,
key_id: &KeyId,
context: &DntContext,
) -> Result<SecretKey, DntKeyError>
fn resolve_key( &self, key_id: &KeyId, context: &DntContext, ) -> Result<SecretKey, DntKeyError>
Resolves one key or returns a controlled key error.
Auto Trait Implementations§
impl<R> Freeze for DntSecretKeyProvider<R>where
R: Freeze,
impl<R> RefUnwindSafe for DntSecretKeyProvider<R>where
R: RefUnwindSafe,
impl<R> Send for DntSecretKeyProvider<R>where
R: Send,
impl<R> Sync for DntSecretKeyProvider<R>where
R: Sync,
impl<R> Unpin for DntSecretKeyProvider<R>where
R: Unpin,
impl<R> UnsafeUnpin for DntSecretKeyProvider<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for DntSecretKeyProvider<R>where
R: UnwindSafe,
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