CryptoKeyVersionResponse class
A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. An ENABLED version can be used for cryptographic operations. For security reasons, the raw cryptographic key material represented by a CryptoKeyVersion can never be viewed or exported. It can only be used to encrypt, decrypt, or sign data when an authorized user or application invokes Cloud KMS.
Constructors
-
CryptoKeyVersionResponse({required Input<
String> algorithm, required Input<KeyOperationAttestationResponse> attestation, required Input<String> createTime, required Input<String> destroyEventTime, required Input<String> destroyTime, required Input<String> externalDestructionFailureReason, required Input<ExternalProtectionLevelOptionsResponse> externalProtectionLevelOptions, required Input<String> generateTime, required Input<String> generationFailureReason, required Input<String> importFailureReason, required Input<String> importJob, required Input<String> importTime, required Input<String> name, required Input<String> protectionLevel, required Input<bool> reimportEligible, required Input<String> state}) -
Creates a new CryptoKeyVersionResponse.
algorithmThe CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.attestationStatement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM.createTimeThe time at which this CryptoKeyVersion was created.destroyEventTimeThe time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.destroyTimeThe time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.externalDestructionFailureReasonThe root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.externalProtectionLevelOptionsExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.generateTimeThe time this CryptoKeyVersion's key material was generated.generationFailureReasonThe root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.importFailureReasonThe root cause of the most recent import failure. Only present if state is IMPORT_FAILED.importJobThe name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.importTimeThe time at which this CryptoKeyVersion's key material was most recently imported.nameThe resource name for this CryptoKeyVersion in the formatprojects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.protectionLevelThe ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.reimportEligibleWhether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.stateThe current state of the CryptoKeyVersion.const -
CryptoKeyVersionResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
algorithm
→ Input<
String> -
The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
final
-
attestation
→ Input<
KeyOperationAttestationResponse> -
Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM.
final
-
createTime
→ Input<
String> -
The time at which this CryptoKeyVersion was created.
final
-
destroyEventTime
→ Input<
String> -
The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.
final
-
destroyTime
→ Input<
String> -
The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.
final
-
externalDestructionFailureReason
→ Input<
String> -
The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.
final
-
externalProtectionLevelOptions
→ Input<
ExternalProtectionLevelOptionsResponse> -
ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.
final
-
generateTime
→ Input<
String> -
The time this CryptoKeyVersion's key material was generated.
final
-
generationFailureReason
→ Input<
String> -
The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
importFailureReason
→ Input<
String> -
The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.
final
-
importJob
→ Input<
String> -
The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.
final
-
importTime
→ Input<
String> -
The time at which this CryptoKeyVersion's key material was most recently imported.
final
-
name
→ Input<
String> -
The resource name for this CryptoKeyVersion in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.final -
protectionLevel
→ Input<
String> -
The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.
final
-
reimportEligible
→ Input<
bool> -
Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ Input<
String> -
The current state of the CryptoKeyVersion.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited