Struct aws_sdk_paymentcryptographydata::operation::decrypt_data::builders::DecryptDataFluentBuilder
source · pub struct DecryptDataFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DecryptData
.
Decrypts ciphertext data to plaintext using symmetric, asymmetric, or DUKPT data encryption key. For more information, see Decrypt data in the Amazon Web Services Payment Cryptography User Guide.
You can use an encryption key generated within Amazon Web Services Payment Cryptography, or you can import your own encryption key by calling ImportKey. For this operation, the key must have KeyModesOfUse
set to Decrypt
. In asymmetric decryption, Amazon Web Services Payment Cryptography decrypts the ciphertext using the private component of the asymmetric encryption key pair. For data encryption outside of Amazon Web Services Payment Cryptography, you can export the public component of the asymmetric key pair by calling GetPublicCertificate.
For symmetric and DUKPT decryption, Amazon Web Services Payment Cryptography supports TDES
and AES
algorithms. For asymmetric decryption, Amazon Web Services Payment Cryptography supports RSA
. When you use DUKPT, for TDES
algorithm, the ciphertext data length must be a multiple of 16 bytes. For AES
algorithm, the ciphertext data length must be a multiple of 32 bytes.
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:
-
EncryptData
Implementations§
source§impl DecryptDataFluentBuilder
impl DecryptDataFluentBuilder
sourcepub fn as_input(&self) -> &DecryptDataInputBuilder
pub fn as_input(&self) -> &DecryptDataInputBuilder
Access the DecryptData as a reference.
sourcepub async fn send(
self
) -> Result<DecryptDataOutput, SdkError<DecryptDataError, HttpResponse>>
pub async fn send( self ) -> Result<DecryptDataOutput, SdkError<DecryptDataError, 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<DecryptDataOutput, DecryptDataError, Self>
pub fn customize( self ) -> CustomizableOperation<DecryptDataOutput, DecryptDataError, Self>
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 encryption key that Amazon Web Services Payment Cryptography uses for ciphertext decryption.
sourcepub fn set_key_identifier(self, input: Option<String>) -> Self
pub fn set_key_identifier(self, input: Option<String>) -> Self
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for ciphertext decryption.
sourcepub fn get_key_identifier(&self) -> &Option<String>
pub fn get_key_identifier(&self) -> &Option<String>
The keyARN
of the encryption key that Amazon Web Services Payment Cryptography uses for ciphertext decryption.
sourcepub fn cipher_text(self, input: impl Into<String>) -> Self
pub fn cipher_text(self, input: impl Into<String>) -> Self
The ciphertext to decrypt.
sourcepub fn set_cipher_text(self, input: Option<String>) -> Self
pub fn set_cipher_text(self, input: Option<String>) -> Self
The ciphertext to decrypt.
sourcepub fn get_cipher_text(&self) -> &Option<String>
pub fn get_cipher_text(&self) -> &Option<String>
The ciphertext to decrypt.
sourcepub fn decryption_attributes(
self,
input: EncryptionDecryptionAttributes
) -> Self
pub fn decryption_attributes( self, input: EncryptionDecryptionAttributes ) -> Self
The encryption key type and attributes for ciphertext decryption.
sourcepub fn set_decryption_attributes(
self,
input: Option<EncryptionDecryptionAttributes>
) -> Self
pub fn set_decryption_attributes( self, input: Option<EncryptionDecryptionAttributes> ) -> Self
The encryption key type and attributes for ciphertext decryption.
sourcepub fn get_decryption_attributes(
&self
) -> &Option<EncryptionDecryptionAttributes>
pub fn get_decryption_attributes( &self ) -> &Option<EncryptionDecryptionAttributes>
The encryption key type and attributes for ciphertext decryption.
Trait Implementations§
source§impl Clone for DecryptDataFluentBuilder
impl Clone for DecryptDataFluentBuilder
source§fn clone(&self) -> DecryptDataFluentBuilder
fn clone(&self) -> DecryptDataFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more