Struct aws_sdk_paymentcryptographydata::operation::generate_pin_data::builders::GeneratePinDataFluentBuilder
source · pub struct GeneratePinDataFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GeneratePinData
.
Generates pin-related data such as PIN, PIN Verification Value (PVV), PIN Block, and PIN Offset during new card issuance or reissuance. For more information, see Generate PIN data in the Amazon Web Services Payment Cryptography User Guide.
PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation generates PIN, PVV, or PIN Offset and then encrypts it using Pin Encryption Key (PEK) to create an EncryptedPinBlock
for transmission from Amazon Web Services Payment Cryptography. This operation uses a separate Pin Verification Key (PVK) for VISA PVV generation.
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:
-
GenerateCardValidationData
-
TranslatePinData
-
VerifyPinData
Implementations§
source§impl GeneratePinDataFluentBuilder
impl GeneratePinDataFluentBuilder
sourcepub fn as_input(&self) -> &GeneratePinDataInputBuilder
pub fn as_input(&self) -> &GeneratePinDataInputBuilder
Access the GeneratePinData as a reference.
sourcepub async fn send(
self
) -> Result<GeneratePinDataOutput, SdkError<GeneratePinDataError, HttpResponse>>
pub async fn send( self ) -> Result<GeneratePinDataOutput, SdkError<GeneratePinDataError, 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 fn customize(
self
) -> CustomizableOperation<GeneratePinDataOutput, GeneratePinDataError, Self>
pub fn customize( self ) -> CustomizableOperation<GeneratePinDataOutput, GeneratePinDataError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn generation_key_identifier(self, input: impl Into<String>) -> Self
pub fn generation_key_identifier(self, input: impl Into<String>) -> Self
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for pin data generation.
sourcepub fn set_generation_key_identifier(self, input: Option<String>) -> Self
pub fn set_generation_key_identifier(self, input: Option<String>) -> Self
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for pin data generation.
sourcepub fn get_generation_key_identifier(&self) -> &Option<String>
pub fn get_generation_key_identifier(&self) -> &Option<String>
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for pin data generation.
sourcepub fn encryption_key_identifier(self, input: impl Into<String>) -> Self
pub fn encryption_key_identifier(self, input: impl Into<String>) -> Self
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses to encrypt the PIN Block.
sourcepub fn set_encryption_key_identifier(self, input: Option<String>) -> Self
pub fn set_encryption_key_identifier(self, input: Option<String>) -> Self
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses to encrypt the PIN Block.
sourcepub fn get_encryption_key_identifier(&self) -> &Option<String>
pub fn get_encryption_key_identifier(&self) -> &Option<String>
The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses to encrypt the PIN Block.
sourcepub fn generation_attributes(self, input: PinGenerationAttributes) -> Self
pub fn generation_attributes(self, input: PinGenerationAttributes) -> Self
The attributes and values to use for PIN, PVV, or PIN Offset generation.
sourcepub fn set_generation_attributes(
self,
input: Option<PinGenerationAttributes>
) -> Self
pub fn set_generation_attributes( self, input: Option<PinGenerationAttributes> ) -> Self
The attributes and values to use for PIN, PVV, or PIN Offset generation.
sourcepub fn get_generation_attributes(&self) -> &Option<PinGenerationAttributes>
pub fn get_generation_attributes(&self) -> &Option<PinGenerationAttributes>
The attributes and values to use for PIN, PVV, or PIN Offset generation.
sourcepub fn pin_data_length(self, input: i32) -> Self
pub fn pin_data_length(self, input: i32) -> Self
The length of PIN under generation.
sourcepub fn set_pin_data_length(self, input: Option<i32>) -> Self
pub fn set_pin_data_length(self, input: Option<i32>) -> Self
The length of PIN under generation.
sourcepub fn get_pin_data_length(&self) -> &Option<i32>
pub fn get_pin_data_length(&self) -> &Option<i32>
The length of PIN under generation.
sourcepub fn primary_account_number(self, input: impl Into<String>) -> Self
pub fn primary_account_number(self, input: impl Into<String>) -> Self
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
sourcepub fn set_primary_account_number(self, input: Option<String>) -> Self
pub fn set_primary_account_number(self, input: Option<String>) -> Self
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
sourcepub fn get_primary_account_number(&self) -> &Option<String>
pub fn get_primary_account_number(&self) -> &Option<String>
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
sourcepub fn pin_block_format(self, input: PinBlockFormatForPinData) -> Self
pub fn pin_block_format(self, input: PinBlockFormatForPinData) -> Self
The PIN encoding format for pin data generation as specified in ISO 9564. Amazon Web Services Payment Cryptography supports ISO_Format_0
and ISO_Format_3
.
The ISO_Format_0
PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.
The ISO_Format_3
PIN block format is the same as ISO_Format_0
except that the fill digits are random values from 10 to 15.
sourcepub fn set_pin_block_format(
self,
input: Option<PinBlockFormatForPinData>
) -> Self
pub fn set_pin_block_format( self, input: Option<PinBlockFormatForPinData> ) -> Self
The PIN encoding format for pin data generation as specified in ISO 9564. Amazon Web Services Payment Cryptography supports ISO_Format_0
and ISO_Format_3
.
The ISO_Format_0
PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.
The ISO_Format_3
PIN block format is the same as ISO_Format_0
except that the fill digits are random values from 10 to 15.
sourcepub fn get_pin_block_format(&self) -> &Option<PinBlockFormatForPinData>
pub fn get_pin_block_format(&self) -> &Option<PinBlockFormatForPinData>
The PIN encoding format for pin data generation as specified in ISO 9564. Amazon Web Services Payment Cryptography supports ISO_Format_0
and ISO_Format_3
.
The ISO_Format_0
PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.
The ISO_Format_3
PIN block format is the same as ISO_Format_0
except that the fill digits are random values from 10 to 15.
Trait Implementations§
source§impl Clone for GeneratePinDataFluentBuilder
impl Clone for GeneratePinDataFluentBuilder
source§fn clone(&self) -> GeneratePinDataFluentBuilder
fn clone(&self) -> GeneratePinDataFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more