pub trait KeyManager: Send + Sync {
// Required method
fn get_key(&self) -> ApiResult<Vec<u8>>;
}Expand description
Consumers can implement the KeyManager in combination with the ManagedEncryptorDecryptor to hand over the encryption key whenever encryption or decryption happens.
Required Methods§
Trait Implementations§
Source§impl<T> FfiConverterArc<T> for dyn KeyManager
impl<T> FfiConverterArc<T> for dyn KeyManager
Source§impl<T> LiftRef<T> for dyn KeyManager
impl<T> LiftRef<T> for dyn KeyManager
type LiftType = Arc<dyn KeyManager>
Implementors§
impl KeyManager for NSSKeyManager
Available on crate feature
keydb only.