KmsClient

Trait KmsClient 

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

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

Required Methods§

Source

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

Returns true if this client does support key_uri.

Source

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

Get an Aead backend by key_uri.

Implementors§