Struct tough_kms::KmsKeySource[][src]

pub struct KmsKeySource {
    pub profile: Option<String>,
    pub key_id: String,
    pub client: Option<KmsClient>,
    pub signing_algorithm: KmsSigningAlgorithm,
}
Expand description

Implements the KeySource trait for keys that live in AWS KMS

Fields

profile: Option<String>

Identifies AWS account named profile, if not provided default AWS profile is used.

key_id: String

Identifies an asymmetric CMK in AWS KMS.

client: Option<KmsClient>

KmsClient Object to query AWS KMS

signing_algorithm: KmsSigningAlgorithm

Signing Algorithm to be used for the message digest, only KmsSigningAlgorithm::RsassaPssSha256 is supported at present.

Trait Implementations

Formats the value using the given formatter. Read more

Implement the KeySource trait.

Returns an object that implements the Sign trait

Writes a key back to the KeySource

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.