Interface ImportKeyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ImportKeyRequest.Builder,ImportKeyRequest>,PaymentCryptographyRequest.Builder,SdkBuilder<ImportKeyRequest.Builder,ImportKeyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ImportKeyRequest
public static interface ImportKeyRequest.Builder extends PaymentCryptographyRequest.Builder, SdkPojo, CopyableBuilder<ImportKeyRequest.Builder,ImportKeyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ImportKeyRequest.Builderenabled(Boolean enabled)Specifies whether import key is enabled.ImportKeyRequest.BuilderkeyCheckValueAlgorithm(String keyCheckValueAlgorithm)The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).ImportKeyRequest.BuilderkeyCheckValueAlgorithm(KeyCheckValueAlgorithm keyCheckValueAlgorithm)The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).default ImportKeyRequest.BuilderkeyMaterial(Consumer<ImportKeyMaterial.Builder> keyMaterial)The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.ImportKeyRequest.BuilderkeyMaterial(ImportKeyMaterial keyMaterial)The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.ImportKeyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ImportKeyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ImportKeyRequest.Buildertags(Collection<Tag> tags)Assigns one or more tags to the Amazon Web Services Payment Cryptography key.ImportKeyRequest.Buildertags(Consumer<Tag.Builder>... tags)Assigns one or more tags to the Amazon Web Services Payment Cryptography key.ImportKeyRequest.Buildertags(Tag... tags)Assigns one or more tags to the Amazon Web Services Payment Cryptography key.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.paymentcryptography.model.PaymentCryptographyRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
enabled
ImportKeyRequest.Builder enabled(Boolean enabled)
Specifies whether import key is enabled.
- Parameters:
enabled- Specifies whether import key is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyCheckValueAlgorithm
ImportKeyRequest.Builder keyCheckValueAlgorithm(String keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- Parameters:
keyCheckValueAlgorithm- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyCheckValueAlgorithm,KeyCheckValueAlgorithm
-
keyCheckValueAlgorithm
ImportKeyRequest.Builder keyCheckValueAlgorithm(KeyCheckValueAlgorithm keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- Parameters:
keyCheckValueAlgorithm- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyCheckValueAlgorithm,KeyCheckValueAlgorithm
-
keyMaterial
ImportKeyRequest.Builder keyMaterial(ImportKeyMaterial keyMaterial)
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
- Parameters:
keyMaterial- The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyMaterial
default ImportKeyRequest.Builder keyMaterial(Consumer<ImportKeyMaterial.Builder> keyMaterial)
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
This is a convenience method that creates an instance of theImportKeyMaterial.Builderavoiding the need to create one manually viaImportKeyMaterial.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyMaterial(ImportKeyMaterial).- Parameters:
keyMaterial- a consumer that will call methods onImportKeyMaterial.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
keyMaterial(ImportKeyMaterial)
-
tags
ImportKeyRequest.Builder tags(Collection<Tag> tags)
Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.
Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
- Parameters:
tags- Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ImportKeyRequest.Builder tags(Tag... tags)
Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.
Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
- Parameters:
tags- Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ImportKeyRequest.Builder tags(Consumer<Tag.Builder>... tags)
Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.
Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
This is a convenience method that creates an instance of theTagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
ImportKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ImportKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-