Struct aws_sdk_kms::operation::verify_mac::VerifyMacInput
source · #[non_exhaustive]pub struct VerifyMacInput {
pub message: Option<Blob>,
pub key_id: Option<String>,
pub mac_algorithm: Option<MacAlgorithmSpec>,
pub mac: Option<Blob>,
pub grant_tokens: Option<Vec<String>>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.message: Option<Blob>
The message that will be used in the verification. Enter the same message that was used to generate the HMAC.
GenerateMac
and VerifyMac
do not provide special handling for message digests. If you generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
key_id: Option<String>
The KMS key that will be used in the verification.
Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the VerifyMac
operation fails.
mac_algorithm: Option<MacAlgorithmSpec>
The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the KeyId
parameter.
mac: Option<Blob>
The HMAC to verify. Enter the HMAC that was generated by the GenerateMac
operation when you specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
grant_tokens: Option<Vec<String>>
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
dry_run: Option<bool>
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
Implementations§
source§impl VerifyMacInput
impl VerifyMacInput
sourcepub fn message(&self) -> Option<&Blob>
pub fn message(&self) -> Option<&Blob>
The message that will be used in the verification. Enter the same message that was used to generate the HMAC.
GenerateMac
and VerifyMac
do not provide special handling for message digests. If you generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The KMS key that will be used in the verification.
Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the VerifyMac
operation fails.
sourcepub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
pub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the KeyId
parameter.
sourcepub fn mac(&self) -> Option<&Blob>
pub fn mac(&self) -> Option<&Blob>
The HMAC to verify. Enter the HMAC that was generated by the GenerateMac
operation when you specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
sourcepub fn grant_tokens(&self) -> &[String]
pub fn grant_tokens(&self) -> &[String]
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .grant_tokens.is_none()
.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
source§impl VerifyMacInput
impl VerifyMacInput
sourcepub fn builder() -> VerifyMacInputBuilder
pub fn builder() -> VerifyMacInputBuilder
Creates a new builder-style object to manufacture VerifyMacInput
.
Trait Implementations§
source§impl Clone for VerifyMacInput
impl Clone for VerifyMacInput
source§fn clone(&self) -> VerifyMacInput
fn clone(&self) -> VerifyMacInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerifyMacInput
impl Debug for VerifyMacInput
source§impl PartialEq for VerifyMacInput
impl PartialEq for VerifyMacInput
source§fn eq(&self, other: &VerifyMacInput) -> bool
fn eq(&self, other: &VerifyMacInput) -> bool
self
and other
values to be equal, and is used
by ==
.