Interface CfnKeyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKeyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:10.142Z")
@Stability(Stable)
public interface CfnKeyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
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")
.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).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:
-
getTags
- See Also:
-
builder
- Returns:
- a
CfnKeyProps.BuilderofCfnKeyProps
-