pub trait KmsClient {
    // Required methods
    fn create_key<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<SigningSecretKeyHandle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 SigningSecretKeyHandle
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn public_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 SigningSecretKeyHandle
    ) -> Pin<Box<dyn Future<Output = Result<VerifyingPublicKey>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_keys<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SigningSecretKeyHandle>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        key: &'life1 SigningSecretKeyHandle,
        message: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

This trait is introduced to help with the testing of the AwsSecurityModule

Required Methods§

source

fn create_key<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SigningSecretKeyHandle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a key

source

fn delete_key<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 SigningSecretKeyHandle ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete a key

source

fn public_key<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 SigningSecretKeyHandle ) -> Pin<Box<dyn Future<Output = Result<VerifyingPublicKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get PublicKey

source

fn list_keys<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Vec<SigningSecretKeyHandle>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List All Keys

source

fn sign<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key: &'life1 SigningSecretKeyHandle, message: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Sign a message

Implementors§