@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata about a KMS key.
This data type is used as a response element for the CreateKey, DescribeKey, and ReplicateKey operations.
| Constructor and Description |
|---|
KeyMetadata() |
| Modifier and Type | Method and Description |
|---|---|
KeyMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the KMS key.
|
String |
getAWSAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
String |
getCloudHsmClusterId()
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key.
|
Date |
getCreationDate()
The date and time when the KMS key was created.
|
String |
getCustomerMasterKeySpec()
Deprecated.
|
String |
getCustomKeyStoreId()
A unique identifier for the custom key store
that contains the KMS key.
|
Date |
getDeletionDate()
The date and time after which KMS deletes this KMS key.
|
String |
getDescription()
The description of the KMS key.
|
Boolean |
getEnabled()
Specifies whether the KMS key is enabled.
|
List<String> |
getEncryptionAlgorithms()
The encryption algorithms that the KMS key supports.
|
String |
getExpirationModel()
Specifies whether the KMS key's key material expires.
|
List<String> |
getKeyAgreementAlgorithms()
The key agreement algorithm used to derive a shared secret.
|
String |
getKeyId()
The globally unique identifier for the KMS key.
|
String |
getKeyManager()
The manager of the KMS key.
|
String |
getKeySpec()
Describes the type of key material in the KMS key.
|
String |
getKeyState()
The current status of the KMS key.
|
String |
getKeyUsage()
The
cryptographic operations for which you can use the KMS key.
|
List<String> |
getMacAlgorithms()
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
|
Boolean |
getMultiRegion()
Indicates whether the KMS key is a multi-Region (
True) or regional (False) key. |
MultiRegionConfiguration |
getMultiRegionConfiguration()
Lists the primary and replica keys in same multi-Region key.
|
String |
getOrigin()
The source of the key material for the KMS key.
|
Integer |
getPendingDeletionWindowInDays()
The waiting period before the primary key in a multi-Region key is deleted.
|
List<String> |
getSigningAlgorithms()
The signing algorithms that the KMS key supports.
|
Date |
getValidTo()
The time at which the imported key material expires.
|
XksKeyConfigurationType |
getXksKeyConfiguration()
Information about the external key that is associated with a KMS key in an external key store.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the KMS key is enabled.
|
Boolean |
isMultiRegion()
Indicates whether the KMS key is a multi-Region (
True) or regional (False) key. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the KMS key.
|
void |
setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
void |
setCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key.
|
void |
setCreationDate(Date creationDate)
The date and time when the KMS key was created.
|
void |
setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Deprecated.
|
void |
setCustomerMasterKeySpec(String customerMasterKeySpec)
Deprecated.
|
void |
setCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store
that contains the KMS key.
|
void |
setDeletionDate(Date deletionDate)
The date and time after which KMS deletes this KMS key.
|
void |
setDescription(String description)
The description of the KMS key.
|
void |
setEnabled(Boolean enabled)
Specifies whether the KMS key is enabled.
|
void |
setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the KMS key supports.
|
void |
setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the KMS key's key material expires.
|
void |
setExpirationModel(String expirationModel)
Specifies whether the KMS key's key material expires.
|
void |
setKeyAgreementAlgorithms(Collection<String> keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
|
void |
setKeyId(String keyId)
The globally unique identifier for the KMS key.
|
void |
setKeyManager(KeyManagerType keyManager)
The manager of the KMS key.
|
void |
setKeyManager(String keyManager)
The manager of the KMS key.
|
void |
setKeySpec(KeySpec keySpec)
Describes the type of key material in the KMS key.
|
void |
setKeySpec(String keySpec)
Describes the type of key material in the KMS key.
|
void |
setKeyState(KeyState keyState)
The current status of the KMS key.
|
void |
setKeyState(String keyState)
The current status of the KMS key.
|
void |
setKeyUsage(KeyUsageType keyUsage)
The
cryptographic operations for which you can use the KMS key.
|
void |
setKeyUsage(String keyUsage)
The
cryptographic operations for which you can use the KMS key.
|
void |
setMacAlgorithms(Collection<String> macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
|
void |
setMultiRegion(Boolean multiRegion)
Indicates whether the KMS key is a multi-Region (
True) or regional (False) key. |
void |
setMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica keys in same multi-Region key.
|
void |
setOrigin(OriginType origin)
The source of the key material for the KMS key.
|
void |
setOrigin(String origin)
The source of the key material for the KMS key.
|
void |
setPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted.
|
void |
setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the KMS key supports.
|
void |
setValidTo(Date validTo)
The time at which the imported key material expires.
|
void |
setXksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration)
Information about the external key that is associated with a KMS key in an external key store.
|
String |
toString()
Returns a string representation of this object.
|
KeyMetadata |
withArn(String arn)
The Amazon Resource Name (ARN) of the KMS key.
|
KeyMetadata |
withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
KeyMetadata |
withCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key.
|
KeyMetadata |
withCreationDate(Date creationDate)
The date and time when the KMS key was created.
|
KeyMetadata |
withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Deprecated.
|
KeyMetadata |
withCustomerMasterKeySpec(String customerMasterKeySpec)
Deprecated.
|
KeyMetadata |
withCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store
that contains the KMS key.
|
KeyMetadata |
withDeletionDate(Date deletionDate)
The date and time after which KMS deletes this KMS key.
|
KeyMetadata |
withDescription(String description)
The description of the KMS key.
|
KeyMetadata |
withEnabled(Boolean enabled)
Specifies whether the KMS key is enabled.
|
KeyMetadata |
withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the KMS key supports.
|
KeyMetadata |
withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that the KMS key supports.
|
KeyMetadata |
withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that the KMS key supports.
|
KeyMetadata |
withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the KMS key's key material expires.
|
KeyMetadata |
withExpirationModel(String expirationModel)
Specifies whether the KMS key's key material expires.
|
KeyMetadata |
withKeyAgreementAlgorithms(Collection<String> keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
|
KeyMetadata |
withKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec... keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
|
KeyMetadata |
withKeyAgreementAlgorithms(String... keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
|
KeyMetadata |
withKeyId(String keyId)
The globally unique identifier for the KMS key.
|
KeyMetadata |
withKeyManager(KeyManagerType keyManager)
The manager of the KMS key.
|
KeyMetadata |
withKeyManager(String keyManager)
The manager of the KMS key.
|
KeyMetadata |
withKeySpec(KeySpec keySpec)
Describes the type of key material in the KMS key.
|
KeyMetadata |
withKeySpec(String keySpec)
Describes the type of key material in the KMS key.
|
KeyMetadata |
withKeyState(KeyState keyState)
The current status of the KMS key.
|
KeyMetadata |
withKeyState(String keyState)
The current status of the KMS key.
|
KeyMetadata |
withKeyUsage(KeyUsageType keyUsage)
The
cryptographic operations for which you can use the KMS key.
|
KeyMetadata |
withKeyUsage(String keyUsage)
The
cryptographic operations for which you can use the KMS key.
|
KeyMetadata |
withMacAlgorithms(Collection<String> macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
|
KeyMetadata |
withMacAlgorithms(MacAlgorithmSpec... macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
|
KeyMetadata |
withMacAlgorithms(String... macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
|
KeyMetadata |
withMultiRegion(Boolean multiRegion)
Indicates whether the KMS key is a multi-Region (
True) or regional (False) key. |
KeyMetadata |
withMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica keys in same multi-Region key.
|
KeyMetadata |
withOrigin(OriginType origin)
The source of the key material for the KMS key.
|
KeyMetadata |
withOrigin(String origin)
The source of the key material for the KMS key.
|
KeyMetadata |
withPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted.
|
KeyMetadata |
withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the KMS key supports.
|
KeyMetadata |
withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that the KMS key supports.
|
KeyMetadata |
withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that the KMS key supports.
|
KeyMetadata |
withValidTo(Date validTo)
The time at which the imported key material expires.
|
KeyMetadata |
withXksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration)
Information about the external key that is associated with a KMS key in an external key store.
|
public void setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
aWSAccountId - The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.public String getAWSAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
public KeyMetadata withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
aWSAccountId - The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.public void setKeyId(String keyId)
The globally unique identifier for the KMS key.
keyId - The globally unique identifier for the KMS key.public String getKeyId()
The globally unique identifier for the KMS key.
public KeyMetadata withKeyId(String keyId)
The globally unique identifier for the KMS key.
keyId - The globally unique identifier for the KMS key.public void setArn(String arn)
The Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference.
arn - The Amazon Resource Name (ARN) of the KMS key. For examples, see Key
Management Service (KMS) in the Example ARNs section of the Amazon Web Services General
Reference.public String getArn()
The Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference.
public KeyMetadata withArn(String arn)
The Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference.
arn - The Amazon Resource Name (ARN) of the KMS key. For examples, see Key
Management Service (KMS) in the Example ARNs section of the Amazon Web Services General
Reference.public void setCreationDate(Date creationDate)
The date and time when the KMS key was created.
creationDate - The date and time when the KMS key was created.public Date getCreationDate()
The date and time when the KMS key was created.
public KeyMetadata withCreationDate(Date creationDate)
The date and time when the KMS key was created.
creationDate - The date and time when the KMS key was created.public void setEnabled(Boolean enabled)
Specifies whether the KMS key is enabled. When KeyState is Enabled this value is true,
otherwise it is false.
enabled - Specifies whether the KMS key is enabled. When KeyState is Enabled this value is
true, otherwise it is false.public Boolean getEnabled()
Specifies whether the KMS key is enabled. When KeyState is Enabled this value is true,
otherwise it is false.
KeyState is Enabled this value
is true, otherwise it is false.public KeyMetadata withEnabled(Boolean enabled)
Specifies whether the KMS key is enabled. When KeyState is Enabled this value is true,
otherwise it is false.
enabled - Specifies whether the KMS key is enabled. When KeyState is Enabled this value is
true, otherwise it is false.public Boolean isEnabled()
Specifies whether the KMS key is enabled. When KeyState is Enabled this value is true,
otherwise it is false.
KeyState is Enabled this value
is true, otherwise it is false.public void setDescription(String description)
The description of the KMS key.
description - The description of the KMS key.public String getDescription()
The description of the KMS key.
public KeyMetadata withDescription(String description)
The description of the KMS key.
description - The description of the KMS key.public void setKeyUsage(String keyUsage)
The cryptographic operations for which you can use the KMS key.
keyUsage - The
cryptographic operations for which you can use the KMS key.KeyUsageTypepublic String getKeyUsage()
The cryptographic operations for which you can use the KMS key.
KeyUsageTypepublic KeyMetadata withKeyUsage(String keyUsage)
The cryptographic operations for which you can use the KMS key.
keyUsage - The
cryptographic operations for which you can use the KMS key.KeyUsageTypepublic void setKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the KMS key.
keyUsage - The
cryptographic operations for which you can use the KMS key.KeyUsageTypepublic KeyMetadata withKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the KMS key.
keyUsage - The
cryptographic operations for which you can use the KMS key.KeyUsageTypepublic void setKeyState(String keyState)
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
keyState - The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
KeyStatepublic String getKeyState()
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
KeyStatepublic KeyMetadata withKeyState(String keyState)
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
keyState - The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
KeyStatepublic void setKeyState(KeyState keyState)
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
keyState - The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
KeyStatepublic KeyMetadata withKeyState(KeyState keyState)
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
keyState - The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
KeyStatepublic void setDeletionDate(Date deletionDate)
The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled
for deletion, that is, when its KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
deletionDate - The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
scheduled for deletion, that is, when its KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
public Date getDeletionDate()
The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled
for deletion, that is, when its KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
public KeyMetadata withDeletionDate(Date deletionDate)
The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled
for deletion, that is, when its KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
deletionDate - The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
scheduled for deletion, that is, when its KeyState is PendingDeletion.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion and the length of its waiting period is displayed in the
PendingDeletionWindowInDays field.
public void setValidTo(Date validTo)
The time at which the imported key material expires. When the key material expires, KMS deletes the key material
and the KMS key becomes unusable. This value is present only for KMS keys whose Origin is
EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this
value is omitted.
validTo - The time at which the imported key material expires. When the key material expires, KMS deletes the key
material and the KMS key becomes unusable. This value is present only for KMS keys whose
Origin is EXTERNAL and whose ExpirationModel is
KEY_MATERIAL_EXPIRES, otherwise this value is omitted.public Date getValidTo()
The time at which the imported key material expires. When the key material expires, KMS deletes the key material
and the KMS key becomes unusable. This value is present only for KMS keys whose Origin is
EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this
value is omitted.
Origin is EXTERNAL and whose ExpirationModel is
KEY_MATERIAL_EXPIRES, otherwise this value is omitted.public KeyMetadata withValidTo(Date validTo)
The time at which the imported key material expires. When the key material expires, KMS deletes the key material
and the KMS key becomes unusable. This value is present only for KMS keys whose Origin is
EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this
value is omitted.
validTo - The time at which the imported key material expires. When the key material expires, KMS deletes the key
material and the KMS key becomes unusable. This value is present only for KMS keys whose
Origin is EXTERNAL and whose ExpirationModel is
KEY_MATERIAL_EXPIRES, otherwise this value is omitted.public void setOrigin(String origin)
The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key
material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any
key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster
associated with a custom key store.
origin - The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the
key material. When this value is EXTERNAL, the key material was imported or the KMS key
doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created
in the CloudHSM cluster associated with a custom key store.OriginTypepublic String getOrigin()
The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key
material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any
key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster
associated with a custom key store.
AWS_KMS, KMS created the
key material. When this value is EXTERNAL, the key material was imported or the KMS key
doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created
in the CloudHSM cluster associated with a custom key store.OriginTypepublic KeyMetadata withOrigin(String origin)
The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key
material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any
key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster
associated with a custom key store.
origin - The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the
key material. When this value is EXTERNAL, the key material was imported or the KMS key
doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created
in the CloudHSM cluster associated with a custom key store.OriginTypepublic void setOrigin(OriginType origin)
The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key
material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any
key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster
associated with a custom key store.
origin - The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the
key material. When this value is EXTERNAL, the key material was imported or the KMS key
doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created
in the CloudHSM cluster associated with a custom key store.OriginTypepublic KeyMetadata withOrigin(OriginType origin)
The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key
material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any
key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster
associated with a custom key store.
origin - The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the
key material. When this value is EXTERNAL, the key material was imported or the KMS key
doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created
in the CloudHSM cluster associated with a custom key store.OriginTypepublic void setCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store that contains the KMS key. This field is present only when the KMS key is created in a custom key store.
customKeyStoreId - A unique identifier for the custom key
store that contains the KMS key. This field is present only when the KMS key is created in a custom
key store.public String getCustomKeyStoreId()
A unique identifier for the custom key store that contains the KMS key. This field is present only when the KMS key is created in a custom key store.
public KeyMetadata withCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store that contains the KMS key. This field is present only when the KMS key is created in a custom key store.
customKeyStoreId - A unique identifier for the custom key
store that contains the KMS key. This field is present only when the KMS key is created in a custom
key store.public void setCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key in an CloudHSM custom key store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when the KMS key is created in an CloudHSM key store.
cloudHsmClusterId - The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a
KMS key in an CloudHSM custom key
store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is
present only when the KMS key is created in an CloudHSM key store.public String getCloudHsmClusterId()
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key in an CloudHSM custom key store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when the KMS key is created in an CloudHSM key store.
public KeyMetadata withCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key in an CloudHSM custom key store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when the KMS key is created in an CloudHSM key store.
cloudHsmClusterId - The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a
KMS key in an CloudHSM custom key
store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is
present only when the KMS key is created in an CloudHSM key store.public void setExpirationModel(String expirationModel)
Specifies whether the KMS key's key material expires. This value is present only when Origin is
EXTERNAL, otherwise this value is omitted.
expirationModel - Specifies whether the KMS key's key material expires. This value is present only when Origin
is EXTERNAL, otherwise this value is omitted.ExpirationModelTypepublic String getExpirationModel()
Specifies whether the KMS key's key material expires. This value is present only when Origin is
EXTERNAL, otherwise this value is omitted.
Origin
is EXTERNAL, otherwise this value is omitted.ExpirationModelTypepublic KeyMetadata withExpirationModel(String expirationModel)
Specifies whether the KMS key's key material expires. This value is present only when Origin is
EXTERNAL, otherwise this value is omitted.
expirationModel - Specifies whether the KMS key's key material expires. This value is present only when Origin
is EXTERNAL, otherwise this value is omitted.ExpirationModelTypepublic void setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the KMS key's key material expires. This value is present only when Origin is
EXTERNAL, otherwise this value is omitted.
expirationModel - Specifies whether the KMS key's key material expires. This value is present only when Origin
is EXTERNAL, otherwise this value is omitted.ExpirationModelTypepublic KeyMetadata withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the KMS key's key material expires. This value is present only when Origin is
EXTERNAL, otherwise this value is omitted.
expirationModel - Specifies whether the KMS key's key material expires. This value is present only when Origin
is EXTERNAL, otherwise this value is omitted.ExpirationModelTypepublic void setKeyManager(String keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
keyManager - The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed. For more information about the difference, see KMS keys in the
Key Management Service Developer Guide.KeyManagerTypepublic String getKeyManager()
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
KeyManagerTypepublic KeyMetadata withKeyManager(String keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
keyManager - The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed. For more information about the difference, see KMS keys in the
Key Management Service Developer Guide.KeyManagerTypepublic void setKeyManager(KeyManagerType keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
keyManager - The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed. For more information about the difference, see KMS keys in the
Key Management Service Developer Guide.KeyManagerTypepublic KeyMetadata withKeyManager(KeyManagerType keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
keyManager - The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed. For more information about the difference, see KMS keys in the
Key Management Service Developer Guide.KeyManagerType@Deprecated public void setCustomerMasterKeySpec(String customerMasterKeySpec)
Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you
use the KeySpec field in your code. However, to avoid breaking changes, KMS supports both fields.
customerMasterKeySpec - Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend
that you use the KeySpec field in your code. However, to avoid breaking changes, KMS supports
both fields.
CustomerMasterKeySpec@Deprecated public String getCustomerMasterKeySpec()
Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you
use the KeySpec field in your code. However, to avoid breaking changes, KMS supports both fields.
KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend
that you use the KeySpec field in your code. However, to avoid breaking changes, KMS
supports both fields.
CustomerMasterKeySpec@Deprecated public KeyMetadata withCustomerMasterKeySpec(String customerMasterKeySpec)
Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you
use the KeySpec field in your code. However, to avoid breaking changes, KMS supports both fields.
customerMasterKeySpec - Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend
that you use the KeySpec field in your code. However, to avoid breaking changes, KMS supports
both fields.
CustomerMasterKeySpec@Deprecated public void setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you
use the KeySpec field in your code. However, to avoid breaking changes, KMS supports both fields.
customerMasterKeySpec - Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend
that you use the KeySpec field in your code. However, to avoid breaking changes, KMS supports
both fields.
CustomerMasterKeySpec@Deprecated public KeyMetadata withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you
use the KeySpec field in your code. However, to avoid breaking changes, KMS supports both fields.
customerMasterKeySpec - Instead, use the KeySpec field.
The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend
that you use the KeySpec field in your code. However, to avoid breaking changes, KMS supports
both fields.
CustomerMasterKeySpecpublic void setKeySpec(String keySpec)
Describes the type of key material in the KMS key.
keySpec - Describes the type of key material in the KMS key.KeySpecpublic String getKeySpec()
Describes the type of key material in the KMS key.
KeySpecpublic KeyMetadata withKeySpec(String keySpec)
Describes the type of key material in the KMS key.
keySpec - Describes the type of key material in the KMS key.KeySpecpublic void setKeySpec(KeySpec keySpec)
Describes the type of key material in the KMS key.
keySpec - Describes the type of key material in the KMS key.KeySpecpublic KeyMetadata withKeySpec(KeySpec keySpec)
Describes the type of key material in the KMS key.
keySpec - Describes the type of key material in the KMS key.KeySpecpublic List<String> getEncryptionAlgorithms()
The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
EncryptionAlgorithmSpecpublic void setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
encryptionAlgorithms - The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
EncryptionAlgorithmSpecpublic KeyMetadata withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
NOTE: This method appends the values to the existing list (if any). Use
setEncryptionAlgorithms(java.util.Collection) or withEncryptionAlgorithms(java.util.Collection)
if you want to override the existing values.
encryptionAlgorithms - The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
EncryptionAlgorithmSpecpublic KeyMetadata withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
encryptionAlgorithms - The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
EncryptionAlgorithmSpecpublic KeyMetadata withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
encryptionAlgorithms - The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
algorithms within KMS.
This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.
EncryptionAlgorithmSpecpublic List<String> getSigningAlgorithms()
The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
SigningAlgorithmSpecpublic void setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
signingAlgorithms - The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
SigningAlgorithmSpecpublic KeyMetadata withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
NOTE: This method appends the values to the existing list (if any). Use
setSigningAlgorithms(java.util.Collection) or withSigningAlgorithms(java.util.Collection) if
you want to override the existing values.
signingAlgorithms - The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
SigningAlgorithmSpecpublic KeyMetadata withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
signingAlgorithms - The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
SigningAlgorithmSpecpublic KeyMetadata withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
signingAlgorithms - The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
within KMS.
This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
SigningAlgorithmSpecpublic List<String> getKeyAgreementAlgorithms()
The key agreement algorithm used to derive a shared secret.
KeyAgreementAlgorithmSpecpublic void setKeyAgreementAlgorithms(Collection<String> keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
keyAgreementAlgorithms - The key agreement algorithm used to derive a shared secret.KeyAgreementAlgorithmSpecpublic KeyMetadata withKeyAgreementAlgorithms(String... keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
NOTE: This method appends the values to the existing list (if any). Use
setKeyAgreementAlgorithms(java.util.Collection) or
withKeyAgreementAlgorithms(java.util.Collection) if you want to override the existing values.
keyAgreementAlgorithms - The key agreement algorithm used to derive a shared secret.KeyAgreementAlgorithmSpecpublic KeyMetadata withKeyAgreementAlgorithms(Collection<String> keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
keyAgreementAlgorithms - The key agreement algorithm used to derive a shared secret.KeyAgreementAlgorithmSpecpublic KeyMetadata withKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec... keyAgreementAlgorithms)
The key agreement algorithm used to derive a shared secret.
keyAgreementAlgorithms - The key agreement algorithm used to derive a shared secret.KeyAgreementAlgorithmSpecpublic void setMultiRegion(Boolean multiRegion)
Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This
value is True for multi-Region primary and replica keys and False for regional KMS
keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
multiRegion - Indicates whether the KMS key is a multi-Region (True) or regional (False) key.
This value is True for multi-Region primary and replica keys and False for
regional KMS keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
public Boolean getMultiRegion()
Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This
value is True for multi-Region primary and replica keys and False for regional KMS
keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
True) or regional (False) key.
This value is True for multi-Region primary and replica keys and False for
regional KMS keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
public KeyMetadata withMultiRegion(Boolean multiRegion)
Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This
value is True for multi-Region primary and replica keys and False for regional KMS
keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
multiRegion - Indicates whether the KMS key is a multi-Region (True) or regional (False) key.
This value is True for multi-Region primary and replica keys and False for
regional KMS keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
public Boolean isMultiRegion()
Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This
value is True for multi-Region primary and replica keys and False for regional KMS
keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
True) or regional (False) key.
This value is True for multi-Region primary and replica keys and False for
regional KMS keys.
For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
public void setMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or REPLICA
key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the current KMS
key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the current
KMS key if it is a replica key.
multiRegionConfiguration - Lists the primary and replica keys in same multi-Region key. This field is present only when the value of
the MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or
REPLICA key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the
current KMS key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the
current KMS key if it is a replica key.
public MultiRegionConfiguration getMultiRegionConfiguration()
Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or REPLICA
key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the current KMS
key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the current
KMS key if it is a replica key.
MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or
REPLICA key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the
current KMS key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the
current KMS key if it is a replica key.
public KeyMetadata withMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or REPLICA
key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the current KMS
key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the current
KMS key if it is a replica key.
multiRegionConfiguration - Lists the primary and replica keys in same multi-Region key. This field is present only when the value of
the MultiRegion field is True.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKeyType indicates whether the KMS key is a PRIMARY or
REPLICA key.
PrimaryKey displays the key ARN and Region of the primary key. This field displays the
current KMS key if it is the primary key.
ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the
current KMS key if it is a replica key.
public void setPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState of the KMS key is
PendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it
is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
displayed in the DeletionDate field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState of the scheduled primary key changes from PendingReplicaDeletion to
PendingDeletion and the deletion date appears in the DeletionDate field.
pendingDeletionWindowInDays - The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
when the last of its replica keys is deleted. This value is present only when the KeyState of
the KMS key is PendingReplicaDeletion. That indicates that the KMS key is the primary key in
a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
displayed in the DeletionDate field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This
value displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState of the scheduled primary key changes from PendingReplicaDeletion to
PendingDeletion and the deletion date appears in the DeletionDate field.
public Integer getPendingDeletionWindowInDays()
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState of the KMS key is
PendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it
is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
displayed in the DeletionDate field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState of the scheduled primary key changes from PendingReplicaDeletion to
PendingDeletion and the deletion date appears in the DeletionDate field.
KeyState
of the KMS key is PendingReplicaDeletion. That indicates that the KMS key is the primary key
in a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date
is displayed in the DeletionDate field. However, when the primary key in a multi-Region key
is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted.
This value displays that waiting period. When the last replica key in the multi-Region key is deleted,
the KeyState of the scheduled primary key changes from PendingReplicaDeletion
to PendingDeletion and the deletion date appears in the DeletionDate field.
public KeyMetadata withPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState of the KMS key is
PendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it
is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
displayed in the DeletionDate field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState of the scheduled primary key changes from PendingReplicaDeletion to
PendingDeletion and the deletion date appears in the DeletionDate field.
pendingDeletionWindowInDays - The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
when the last of its replica keys is deleted. This value is present only when the KeyState of
the KMS key is PendingReplicaDeletion. That indicates that the KMS key is the primary key in
a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
displayed in the DeletionDate field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This
value displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState of the scheduled primary key changes from PendingReplicaDeletion to
PendingDeletion and the deletion date appears in the DeletionDate field.
public List<String> getMacAlgorithms()
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.
This value is present only when the KeyUsage of the KMS key is
GENERATE_VERIFY_MAC.
MacAlgorithmSpecpublic void setMacAlgorithms(Collection<String> macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.
macAlgorithms - The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is
GENERATE_VERIFY_MAC.
MacAlgorithmSpecpublic KeyMetadata withMacAlgorithms(String... macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.
NOTE: This method appends the values to the existing list (if any). Use
setMacAlgorithms(java.util.Collection) or withMacAlgorithms(java.util.Collection) if you want
to override the existing values.
macAlgorithms - The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is
GENERATE_VERIFY_MAC.
MacAlgorithmSpecpublic KeyMetadata withMacAlgorithms(Collection<String> macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.
macAlgorithms - The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is
GENERATE_VERIFY_MAC.
MacAlgorithmSpecpublic KeyMetadata withMacAlgorithms(MacAlgorithmSpec... macAlgorithms)
The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.
macAlgorithms - The message authentication code (MAC) algorithm that the HMAC KMS key supports.
This value is present only when the KeyUsage of the KMS key is
GENERATE_VERIFY_MAC.
MacAlgorithmSpecpublic void setXksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration)
Information about the external key that is associated with a KMS key in an external key store.
For more information, see External key in the Key Management Service Developer Guide.
xksKeyConfiguration - Information about the external key that is associated with a KMS key in an external key store.
For more information, see External key in the Key Management Service Developer Guide.
public XksKeyConfigurationType getXksKeyConfiguration()
Information about the external key that is associated with a KMS key in an external key store.
For more information, see External key in the Key Management Service Developer Guide.
For more information, see External key in the Key Management Service Developer Guide.
public KeyMetadata withXksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration)
Information about the external key that is associated with a KMS key in an external key store.
For more information, see External key in the Key Management Service Developer Guide.
xksKeyConfiguration - Information about the external key that is associated with a KMS key in an external key store.
For more information, see External key in the Key Management Service Developer Guide.
public String toString()
toString in class ObjectObject.toString()public KeyMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.