Struct aws_sdk_paymentcryptographydata::operation::generate_mac::builders::GenerateMacOutputBuilder
source · #[non_exhaustive]pub struct GenerateMacOutputBuilder { /* private fields */ }
Expand description
A builder for GenerateMacOutput
.
Implementations§
source§impl GenerateMacOutputBuilder
impl GenerateMacOutputBuilder
sourcepub fn key_arn(self, input: impl Into<String>) -> Self
pub fn key_arn(self, input: impl Into<String>) -> Self
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for MAC generation.
sourcepub fn set_key_arn(self, input: Option<String>) -> Self
pub fn set_key_arn(self, input: Option<String>) -> Self
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for MAC generation.
sourcepub fn get_key_arn(&self) -> &Option<String>
pub fn get_key_arn(&self) -> &Option<String>
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for MAC generation.
sourcepub fn key_check_value(self, input: impl Into<String>) -> Self
pub fn key_check_value(self, input: impl Into<String>) -> Self
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. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
sourcepub fn set_key_check_value(self, input: Option<String>) -> Self
pub fn set_key_check_value(self, input: Option<String>) -> Self
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. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
sourcepub fn get_key_check_value(&self) -> &Option<String>
pub fn get_key_check_value(&self) -> &Option<String>
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. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
sourcepub fn mac(self, input: impl Into<String>) -> Self
pub fn mac(self, input: impl Into<String>) -> Self
The MAC cryptogram generated within Amazon Web Services Payment Cryptography.
sourcepub fn set_mac(self, input: Option<String>) -> Self
pub fn set_mac(self, input: Option<String>) -> Self
The MAC cryptogram generated within Amazon Web Services Payment Cryptography.
sourcepub fn get_mac(&self) -> &Option<String>
pub fn get_mac(&self) -> &Option<String>
The MAC cryptogram generated within Amazon Web Services Payment Cryptography.
sourcepub fn build(self) -> GenerateMacOutput
pub fn build(self) -> GenerateMacOutput
Consumes the builder and constructs a GenerateMacOutput
.
Trait Implementations§
source§impl Clone for GenerateMacOutputBuilder
impl Clone for GenerateMacOutputBuilder
source§fn clone(&self) -> GenerateMacOutputBuilder
fn clone(&self) -> GenerateMacOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateMacOutputBuilder
impl Debug for GenerateMacOutputBuilder
source§impl Default for GenerateMacOutputBuilder
impl Default for GenerateMacOutputBuilder
source§fn default() -> GenerateMacOutputBuilder
fn default() -> GenerateMacOutputBuilder
source§impl PartialEq for GenerateMacOutputBuilder
impl PartialEq for GenerateMacOutputBuilder
source§fn eq(&self, other: &GenerateMacOutputBuilder) -> bool
fn eq(&self, other: &GenerateMacOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.