Interface KeyAttributes.Builder

  • Method Details

    • keyUsage

      KeyAttributes.Builder keyUsage(String keyUsage)

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.

      Parameters:
      keyUsage - The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyUsage

      KeyAttributes.Builder keyUsage(KeyUsage keyUsage)

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.

      Parameters:
      keyUsage - The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyClass

      KeyAttributes.Builder keyClass(String keyClass)

      The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.

      Parameters:
      keyClass - The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyClass

      KeyAttributes.Builder keyClass(KeyClass keyClass)

      The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.

      Parameters:
      keyClass - The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyAlgorithm

      KeyAttributes.Builder keyAlgorithm(String keyAlgorithm)

      The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

      For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

      Parameters:
      keyAlgorithm - The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

      For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyAlgorithm

      KeyAttributes.Builder keyAlgorithm(KeyAlgorithm keyAlgorithm)

      The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

      For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

      Parameters:
      keyAlgorithm - The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

      For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyModesOfUse

      KeyAttributes.Builder keyModesOfUse(KeyModesOfUse keyModesOfUse)

      The list of cryptographic operations that you can perform using the key.

      Parameters:
      keyModesOfUse - The list of cryptographic operations that you can perform using the key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyModesOfUse

      default KeyAttributes.Builder keyModesOfUse(Consumer<KeyModesOfUse.Builder> keyModesOfUse)

      The list of cryptographic operations that you can perform using the key.

      This is a convenience method that creates an instance of the KeyModesOfUse.Builder avoiding the need to create one manually via KeyModesOfUse.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to keyModesOfUse(KeyModesOfUse).

      Parameters:
      keyModesOfUse - a consumer that will call methods on KeyModesOfUse.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: