logins::encryption

Trait KeyManager

Source
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§

Source

fn get_key(&self) -> ApiResult<Vec<u8>>

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn KeyManager

Source§

const TYPE_ID_META: MetadataBuffer = _

Source§

type FfiType = *const c_void

Source§

fn lower(obj: Arc<Self>) -> Self::FfiType

Source§

fn try_lift(v: Self::FfiType) -> Result<Arc<Self>>

Source§

fn write(obj: Arc<Self>, buf: &mut Vec<u8>)

Source§

fn try_read(buf: &mut &[u8]) -> Result<Arc<Self>>

Source§

impl<T> LiftRef<T> for dyn KeyManager

Implementors§