CryptoKeyVersion 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
- CryptoKeyVersion({String? algorithm, KeyOperationAttestation? attestation, String? createTime, String? destroyEventTime, String? destroyTime, String? externalDestructionFailureReason, ExternalProtectionLevelOptions? externalProtectionLevelOptions, String? generateTime, String? generationFailureReason, String? importFailureReason, String? importJob, String? importTime, String? name, String? protectionLevel, bool? reimportEligible, String? state})
- CryptoKeyVersion.fromJson(Map json_)
Properties
- algorithm ↔ String?
-
The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
getter/setter pair
- attestation ↔ KeyOperationAttestation?
-
Statement that was generated and signed by the HSM at key creation time.
getter/setter pair
- createTime ↔ String?
-
The time at which this CryptoKeyVersion was created.
getter/setter pair
- destroyEventTime ↔ String?
-
The time this CryptoKeyVersion's key material was destroyed.
getter/setter pair
- destroyTime ↔ String?
-
The time this CryptoKeyVersion's key material is scheduled for
destruction.
getter/setter pair
- externalDestructionFailureReason ↔ String?
-
The root cause of the most recent external destruction failure.
getter/setter pair
- externalProtectionLevelOptions ↔ ExternalProtectionLevelOptions?
-
ExternalProtectionLevelOptions stores a group of additional fields for
configuring a CryptoKeyVersion that are specific to the EXTERNAL
protection level and EXTERNAL_VPC protection levels.
getter/setter pair
- generateTime ↔ String?
-
The time this CryptoKeyVersion's key material was generated.
getter/setter pair
- generationFailureReason ↔ String?
-
The root cause of the most recent generation failure.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- importFailureReason ↔ String?
-
The root cause of the most recent import failure.
getter/setter pair
- importJob ↔ String?
-
The name of the ImportJob used in the most recent import of this
CryptoKeyVersion.
getter/setter pair
- importTime ↔ String?
-
The time at which this CryptoKeyVersion's key material was most recently
imported.
getter/setter pair
- name ↔ String?
-
The resource name for this CryptoKeyVersion in the format
projects / * /locations / * /keyRings / * /cryptoKeys / * /cryptoKeyVersions / *
.getter/setter pair - protectionLevel ↔ String?
-
The ProtectionLevel describing how crypto operations are performed with
this CryptoKeyVersion.
getter/setter pair
- reimportEligible ↔ bool?
-
Whether or not this key version is eligible for reimport, by being
specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ String?
-
The current state of the CryptoKeyVersion.
Possible string values are:
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited