aws_sdk_paymentcryptographydata/client/
verify_mac.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`VerifyMac`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key_identifier(impl Into<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses to verify MAC data.</p><br>
7    ///   - [`message_data(impl Into<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::message_data) / [`set_message_data(Option<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::set_message_data):<br>required: **true**<br><p>The data on for which MAC is under verification. This value must be hexBinary.</p><br>
8    ///   - [`mac(impl Into<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::mac) / [`set_mac(Option<String>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::set_mac):<br>required: **true**<br><p>The MAC being verified.</p><br>
9    ///   - [`verification_attributes(MacAttributes)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::verification_attributes) / [`set_verification_attributes(Option<MacAttributes>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::set_verification_attributes):<br>required: **true**<br><p>The attributes and data values to use for MAC verification within Amazon Web Services Payment Cryptography.</p><br>
10    ///   - [`mac_length(i32)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::mac_length) / [`set_mac_length(Option<i32>)`](crate::operation::verify_mac::builders::VerifyMacFluentBuilder::set_mac_length):<br>required: **false**<br><p>The length of the MAC.</p><br>
11    /// - On success, responds with [`VerifyMacOutput`](crate::operation::verify_mac::VerifyMacOutput) with field(s):
12    ///   - [`key_arn(String)`](crate::operation::verify_mac::VerifyMacOutput::key_arn): <p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses for MAC verification.</p>
13    ///   - [`key_check_value(String)`](crate::operation::verify_mac::VerifyMacOutput::key_check_value): <p>The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed.</p> <p>Amazon Web Services Payment Cryptography computes the KCV according to the CMAC specification.</p>
14    /// - On failure, responds with [`SdkError<VerifyMacError>`](crate::operation::verify_mac::VerifyMacError)
15    pub fn verify_mac(&self) -> crate::operation::verify_mac::builders::VerifyMacFluentBuilder {
16        crate::operation::verify_mac::builders::VerifyMacFluentBuilder::new(self.handle.clone())
17    }
18}