Trait ockam_vault_aws::KmsClient
source · 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§
sourcefn 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 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
sourcefn 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 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
sourcefn 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 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
sourcefn 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 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
sourcefn 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,
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