Interface CfnKeyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKeyProps.Jsii$Proxy
CfnKey.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.paymentcryptography.*;
CfnKeyProps cfnKeyProps = CfnKeyProps.builder()
.exportable(false)
.keyAttributes(KeyAttributesProperty.builder()
.keyAlgorithm("keyAlgorithm")
.keyClass("keyClass")
.keyModesOfUse(KeyModesOfUseProperty.builder()
.decrypt(false)
.deriveKey(false)
.encrypt(false)
.generate(false)
.noRestrictions(false)
.sign(false)
.unwrap(false)
.verify(false)
.wrap(false)
.build())
.keyUsage("keyUsage")
.build())
// the properties below are optional
.deriveKeyUsage("deriveKeyUsage")
.enabled(false)
.keyCheckValueAlgorithm("keyCheckValueAlgorithm")
.replicationRegions(List.of("replicationRegions"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnKeyPropsstatic final classAn implementation forCfnKeyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnKeyProps.Builderbuilder()default StringThe cryptographic usage of an ECDH derived key as defined in section A.5.2 of the TR-31 spec.default ObjectSpecifies whether the key is enabled.Specifies whether the key is exportable.The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.default StringThe algorithm that AWS Payment Cryptography uses to calculate the key check value (KCV).The list of AWS Regions to remove from the key's replication configuration.getTags()Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExportable
Specifies whether the key is exportable.This data is immutable after the key is created.
Returns union: either
BooleanorIResolvable- See Also:
-
getKeyAttributes
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.
Returns union: either
IResolvableorCfnKey.KeyAttributesProperty- See Also:
-
getDeriveKeyUsage
The cryptographic usage of an ECDH derived key as defined in section A.5.2 of the TR-31 spec.- See Also:
-
getEnabled
Specifies whether the key is enabled.Returns union: either
BooleanorIResolvable- See Also:
-
getKeyCheckValueAlgorithm
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.
- See Also:
-
getReplicationRegions
The list of AWS Regions to remove from the key's replication configuration.The key will no longer be available for cryptographic operations in these regions after removal. Ensure no active operations depend on the key in these regions before removal.
- See Also:
-
getTags
- See Also:
-
builder
- Returns:
- a
CfnKeyProps.BuilderofCfnKeyProps
-