Class CfnKey.Builder
java.lang.Object
software.amazon.awscdk.services.paymentcryptography.CfnKey.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKey>
- Enclosing class:
CfnKey
@Stability(Stable)
public static final class CfnKey.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKey>
A fluent builder for
CfnKey
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnKey.Builder
Specifies whether the key is enabled.enabled
(IResolvable enabled) Specifies whether the key is enabled.exportable
(Boolean exportable) Specifies whether the key is exportable.exportable
(IResolvable exportable) Specifies whether the key is exportable.keyAttributes
(IResolvable keyAttributes) The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.keyAttributes
(CfnKey.KeyAttributesProperty keyAttributes) The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.keyCheckValueAlgorithm
(String keyCheckValueAlgorithm) The algorithm that AWS Payment Cryptography uses to calculate the key check value (KCV).
-
Method Details
-
create
@Stability(Stable) public static CfnKey.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnKey.Builder
.
-
exportable
Specifies whether the key is exportable.This data is immutable after the key is created.
- Parameters:
exportable
- Specifies whether the key is exportable. This parameter is required.- Returns:
this
- See Also:
-
exportable
Specifies whether the key is exportable.This data is immutable after the key is created.
- Parameters:
exportable
- Specifies whether the key is exportable. This parameter is required.- Returns:
this
- See Also:
-
keyAttributes
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.This data is immutable after the key is created.
- Parameters:
keyAttributes
- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This parameter is required.- Returns:
this
- See Also:
-
keyAttributes
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.This data is immutable after the key is created.
- Parameters:
keyAttributes
- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This parameter is required.- Returns:
this
- See Also:
-
enabled
Specifies whether the key is enabled.- Parameters:
enabled
- Specifies whether the key is enabled. This parameter is required.- Returns:
this
- See Also:
-
enabled
Specifies whether the key is enabled.- Parameters:
enabled
- Specifies whether the key is enabled. This parameter is required.- Returns:
this
- See Also:
-
keyCheckValueAlgorithm
The algorithm that AWS 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 AWS Payment Cryptography uses to calculate the key check value (KCV). This parameter is required.- Returns:
this
- See Also:
-
tags
- Parameters:
tags
- This parameter is required.- Returns:
this
- See Also:
-
build
-