Class EncryptDataRequest

    • Method Detail

      • keyIdentifier

        public final String keyIdentifier()

        The keyARN of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.

        When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.

        Returns:
        The keyARN of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.

        When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.

      • plainText

        public final String plainText()

        The plaintext to be encrypted.

        For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in KeyAlgorithm and padding type that you define in AsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.

        Returns:
        The plaintext to be encrypted.

        For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in KeyAlgorithm and padding type that you define in AsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.

      • encryptionAttributes

        public final EncryptionDecryptionAttributes encryptionAttributes()

        The encryption key type and attributes for plaintext encryption.

        Returns:
        The encryption key type and attributes for plaintext encryption.
      • wrappedKey

        public final WrappedKey wrappedKey()

        The WrappedKeyBlock containing the encryption key for plaintext encryption.

        Returns:
        The WrappedKeyBlock containing the encryption key for plaintext encryption.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object