Key
¶
Source code in docs_src/capo_payment_cryptography/types/key.py
create_timestamp
instance-attribute
¶
create_timestamp: Timestamp
The date and time when the key was created.
delete_pending_timestamp
instance-attribute
¶
delete_pending_timestamp: NotRequired[Timestamp]
The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when KeyState is DELETE_PENDING and the key is scheduled for deletion.
delete_timestamp
instance-attribute
¶
delete_timestamp: NotRequired[Timestamp]
The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the KeyState is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography key is deleted.
derive_key_usage
instance-attribute
¶
derive_key_usage: NotRequired[DeriveKeyUsage]
The cryptographic usage of an ECDH derived key as defined in section A.5.2 of the TR-31 spec.
exportable
instance-attribute
¶
exportable: bool
Specifies whether the key is exportable. This data is immutable after the key is created.
key_attributes
instance-attribute
¶
key_attributes: 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.
key_check_value
instance-attribute
¶
key_check_value: KeyCheckValue
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
key_check_value_algorithm
instance-attribute
¶
key_check_value_algorithm: 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. For HMAC keys, the KCV is computed using the hash selected at key creation on a zero-length message, taking the leftmost 3 bytes.
key_origin
instance-attribute
¶
key_origin: KeyOrigin
The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value is EXTERNAL.
key_state
instance-attribute
¶
key_state: KeyState
The state of key that is being created or deleted.
mpa_status
instance-attribute
¶
mpa_status: NotRequired[MpaStatus]
The Multi-Party Approval (MPA) status for the key, if applicable.
multi_region_key_type
instance-attribute
¶
multi_region_key_type: NotRequired[MultiRegionKeyType]
Indicates whether this key is a Multi-Region key and its role in the Multi-Region key hierarchy.
Multi-Region replication keys allow the same key material to be used across multiple Amazon Web Services Regions. This field specifies whether the key is a Primary Region key (PRK) (which can be replicated to other Amazon Web Services Regions) or a Replica Region key (RRK) (which is a copy of a PRK in another Region). For more information, see Multi-Region key replication.
replication_status
instance-attribute
¶
replication_status: NotRequired[ReplicationStatus]
Information about the replication status of the key across different Amazon Web Services Regions.
This field provides details about the current state of key replication, including any status messages or operational information. It helps track the progress and health of key replication operations.
usage_start_timestamp
instance-attribute
¶
usage_start_timestamp: NotRequired[Timestamp]
The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.
usage_stop_timestamp
instance-attribute
¶
usage_stop_timestamp: NotRequired[Timestamp]
The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.
using_default_replication_regions
instance-attribute
¶
using_default_replication_regions: NotRequired[bool]
Indicates whether this key is using the account's default replication regions configuration for Multi-Region key replication.
When set to true, the key automatically replicates to the regions specified in the account's default replication settings. When set to false, the key has a custom replication configuration that overrides the account defaults.