Struct ockam_vault_aws::AwsKmsClient
source · pub struct AwsKmsClient { /* private fields */ }
Expand description
AWS KMS client.
Implementations§
source§impl AwsKmsClient
impl AwsKmsClient
sourcepub async fn new(config: AwsKmsConfig) -> Result<AwsKmsClient>
pub async fn new(config: AwsKmsConfig) -> Result<AwsKmsClient>
Create a new AWS KMS client.
sourcepub async fn create_key(&self) -> Result<SigningSecretKeyHandle>
pub async fn create_key(&self) -> Result<SigningSecretKeyHandle>
Create a new NIST P-256 key-pair in AWS KMS and return its ID.
sourcepub async fn delete_key(&self, key: &SigningSecretKeyHandle) -> Result<bool>
pub async fn delete_key(&self, key: &SigningSecretKeyHandle) -> Result<bool>
Have AWS KMS schedule key deletion.
sourcepub async fn public_key(
&self,
key: &SigningSecretKeyHandle
) -> Result<VerifyingPublicKey>
pub async fn public_key( &self, key: &SigningSecretKeyHandle ) -> Result<VerifyingPublicKey>
Get the public key part of a AWS KMS key-pair.
Trait Implementations§
source§impl Clone for AwsKmsClient
impl Clone for AwsKmsClient
source§fn clone(&self) -> AwsKmsClient
fn clone(&self) -> AwsKmsClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AwsKmsClient
impl Debug for AwsKmsClient
source§impl KmsClient for AwsKmsClient
impl KmsClient for AwsKmsClient
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,
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_id: &'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_id: &'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 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
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,
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 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
Auto Trait Implementations§
impl !RefUnwindSafe for AwsKmsClient
impl Send for AwsKmsClient
impl Sync for AwsKmsClient
impl Unpin for AwsKmsClient
impl !UnwindSafe for AwsKmsClient
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.