[][src]Trait tink_core::registry::KmsClient

pub trait KmsClient: Send + Sync {
    fn supported(&self, key_uri: &str) -> bool;
fn get_aead(&self, key_uri: &str) -> Result<Box<dyn Aead>, TinkError>; }

KmsClient knows how to produce primitives backed by keys stored in remote KMS services.

Required methods

fn supported(&self, key_uri: &str) -> bool

Returns true if this client does support key_uri.

fn get_aead(&self, key_uri: &str) -> Result<Box<dyn Aead>, TinkError>

Get an Aead backend by key_uri.

Loading content...

Implementors

Loading content...