Struct aws_sdk_paymentcryptographydata::operation::generate_mac::builders::GenerateMacFluentBuilder
source · pub struct GenerateMacFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GenerateMac
.
Generates a Message Authentication Code (MAC) cryptogram within Amazon Web Services Payment Cryptography.
You can use this operation when keys won't be shared but mutual data is present on both ends for validation. In this case, known data values are used to generate a MAC on both ends for comparision without sending or receiving data in ciphertext or plaintext. You can use this operation to generate a DUPKT, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. The MAC generation encryption key must have valid values for KeyUsage
such as TR31_M7_HMAC_KEY
for HMAC generation, and they key must have KeyModesOfUse
set to Generate
and Verify
.
For information about valid keys for this operation, see Understanding key attributes and Key types for specific data operations in the Amazon Web Services Payment Cryptography User Guide.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
-
VerifyMac
Implementations§
source§impl GenerateMacFluentBuilder
impl GenerateMacFluentBuilder
sourcepub fn as_input(&self) -> &GenerateMacInputBuilder
pub fn as_input(&self) -> &GenerateMacInputBuilder
Access the GenerateMac as a reference.
sourcepub async fn send(
self
) -> Result<GenerateMacOutput, SdkError<GenerateMacError, HttpResponse>>
pub async fn send( self ) -> Result<GenerateMacOutput, SdkError<GenerateMacError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GenerateMacOutput, GenerateMacError, Self>, SdkError<GenerateMacError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GenerateMacOutput, GenerateMacError, Self>, SdkError<GenerateMacError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn key_identifier(self, input: impl Into<String>) -> Self
pub fn key_identifier(self, input: impl Into<String>) -> Self
The keyARN
of the MAC generation encryption key.
sourcepub fn set_key_identifier(self, input: Option<String>) -> Self
pub fn set_key_identifier(self, input: Option<String>) -> Self
The keyARN
of the MAC generation encryption key.
sourcepub fn get_key_identifier(&self) -> &Option<String>
pub fn get_key_identifier(&self) -> &Option<String>
The keyARN
of the MAC generation encryption key.
sourcepub fn message_data(self, input: impl Into<String>) -> Self
pub fn message_data(self, input: impl Into<String>) -> Self
The data for which a MAC is under generation.
sourcepub fn set_message_data(self, input: Option<String>) -> Self
pub fn set_message_data(self, input: Option<String>) -> Self
The data for which a MAC is under generation.
sourcepub fn get_message_data(&self) -> &Option<String>
pub fn get_message_data(&self) -> &Option<String>
The data for which a MAC is under generation.
sourcepub fn generation_attributes(self, input: MacAttributes) -> Self
pub fn generation_attributes(self, input: MacAttributes) -> Self
The attributes and data values to use for MAC generation within Amazon Web Services Payment Cryptography.
sourcepub fn set_generation_attributes(self, input: Option<MacAttributes>) -> Self
pub fn set_generation_attributes(self, input: Option<MacAttributes>) -> Self
The attributes and data values to use for MAC generation within Amazon Web Services Payment Cryptography.
sourcepub fn get_generation_attributes(&self) -> &Option<MacAttributes>
pub fn get_generation_attributes(&self) -> &Option<MacAttributes>
The attributes and data values to use for MAC generation within Amazon Web Services Payment Cryptography.
sourcepub fn mac_length(self, input: i32) -> Self
pub fn mac_length(self, input: i32) -> Self
The length of a MAC under generation.
sourcepub fn set_mac_length(self, input: Option<i32>) -> Self
pub fn set_mac_length(self, input: Option<i32>) -> Self
The length of a MAC under generation.
sourcepub fn get_mac_length(&self) -> &Option<i32>
pub fn get_mac_length(&self) -> &Option<i32>
The length of a MAC under generation.
Trait Implementations§
source§impl Clone for GenerateMacFluentBuilder
impl Clone for GenerateMacFluentBuilder
source§fn clone(&self) -> GenerateMacFluentBuilder
fn clone(&self) -> GenerateMacFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more