public class KeyMetadata
extends java.lang.Object
implements java.io.Serializable
Contains metadata about a customer master key (CMK).
This data type is used as a response element for the CreateKey and DescribeKey operations.
Constructor and Description |
---|
KeyMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the CMK.
|
java.lang.String |
getAWSAccountId()
The twelve-digit account ID of the AWS account that owns the CMK.
|
java.lang.String |
getCloudHsmClusterId()
The cluster ID of the AWS CloudHSM cluster that contains the key material
for the CMK.
|
java.util.Date |
getCreationDate()
The date and time when the CMK was created.
|
java.lang.String |
getCustomerMasterKeySpec()
Describes the type of key material in the CMK.
|
java.lang.String |
getCustomKeyStoreId()
A unique identifier for the custom key store that contains the CMK.
|
java.util.Date |
getDeletionDate()
The date and time after which AWS KMS deletes the CMK.
|
java.lang.String |
getDescription()
The description of the CMK.
|
java.lang.Boolean |
getEnabled()
Specifies whether the CMK is enabled.
|
java.util.List<java.lang.String> |
getEncryptionAlgorithms()
The encryption algorithms that the CMK supports.
|
java.lang.String |
getExpirationModel()
Specifies whether the CMK's key material expires.
|
java.lang.String |
getKeyId()
The globally unique identifier for the CMK.
|
java.lang.String |
getKeyManager()
The manager of the CMK.
|
java.lang.String |
getKeyState()
The current status of the CMK.
|
java.lang.String |
getKeyUsage()
The cryptographic operations for which you can use the CMK.
|
java.lang.String |
getOrigin()
The source of the CMK's key material.
|
java.util.List<java.lang.String> |
getSigningAlgorithms()
The signing algorithms that the CMK supports.
|
java.util.Date |
getValidTo()
The time at which the imported key material expires.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether the CMK is enabled.
|
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the CMK.
|
void |
setAWSAccountId(java.lang.String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
void |
setCloudHsmClusterId(java.lang.String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material
for the CMK.
|
void |
setCreationDate(java.util.Date creationDate)
The date and time when the CMK was created.
|
void |
setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
|
void |
setCustomerMasterKeySpec(java.lang.String customerMasterKeySpec)
Describes the type of key material in the CMK.
|
void |
setCustomKeyStoreId(java.lang.String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK.
|
void |
setDeletionDate(java.util.Date deletionDate)
The date and time after which AWS KMS deletes the CMK.
|
void |
setDescription(java.lang.String description)
The description of the CMK.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether the CMK is enabled.
|
void |
setEncryptionAlgorithms(java.util.Collection<java.lang.String> encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
void |
setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires.
|
void |
setExpirationModel(java.lang.String expirationModel)
Specifies whether the CMK's key material expires.
|
void |
setKeyId(java.lang.String keyId)
The globally unique identifier for the CMK.
|
void |
setKeyManager(KeyManagerType keyManager)
The manager of the CMK.
|
void |
setKeyManager(java.lang.String keyManager)
The manager of the CMK.
|
void |
setKeyState(KeyState keyState)
The current status of the CMK.
|
void |
setKeyState(java.lang.String keyState)
The current status of the CMK.
|
void |
setKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
|
void |
setKeyUsage(java.lang.String keyUsage)
The cryptographic operations for which you can use the CMK.
|
void |
setOrigin(OriginType origin)
The source of the CMK's key material.
|
void |
setOrigin(java.lang.String origin)
The source of the CMK's key material.
|
void |
setSigningAlgorithms(java.util.Collection<java.lang.String> signingAlgorithms)
The signing algorithms that the CMK supports.
|
void |
setValidTo(java.util.Date validTo)
The time at which the imported key material expires.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyMetadata |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the CMK.
|
KeyMetadata |
withAWSAccountId(java.lang.String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
KeyMetadata |
withCloudHsmClusterId(java.lang.String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material
for the CMK.
|
KeyMetadata |
withCreationDate(java.util.Date creationDate)
The date and time when the CMK was created.
|
KeyMetadata |
withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
|
KeyMetadata |
withCustomerMasterKeySpec(java.lang.String customerMasterKeySpec)
Describes the type of key material in the CMK.
|
KeyMetadata |
withCustomKeyStoreId(java.lang.String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK.
|
KeyMetadata |
withDeletionDate(java.util.Date deletionDate)
The date and time after which AWS KMS deletes the CMK.
|
KeyMetadata |
withDescription(java.lang.String description)
The description of the CMK.
|
KeyMetadata |
withEnabled(java.lang.Boolean enabled)
Specifies whether the CMK is enabled.
|
KeyMetadata |
withEncryptionAlgorithms(java.util.Collection<java.lang.String> encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
KeyMetadata |
withEncryptionAlgorithms(java.lang.String... encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
KeyMetadata |
withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires.
|
KeyMetadata |
withExpirationModel(java.lang.String expirationModel)
Specifies whether the CMK's key material expires.
|
KeyMetadata |
withKeyId(java.lang.String keyId)
The globally unique identifier for the CMK.
|
KeyMetadata |
withKeyManager(KeyManagerType keyManager)
The manager of the CMK.
|
KeyMetadata |
withKeyManager(java.lang.String keyManager)
The manager of the CMK.
|
KeyMetadata |
withKeyState(KeyState keyState)
The current status of the CMK.
|
KeyMetadata |
withKeyState(java.lang.String keyState)
The current status of the CMK.
|
KeyMetadata |
withKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
|
KeyMetadata |
withKeyUsage(java.lang.String keyUsage)
The cryptographic operations for which you can use the CMK.
|
KeyMetadata |
withOrigin(OriginType origin)
The source of the CMK's key material.
|
KeyMetadata |
withOrigin(java.lang.String origin)
The source of the CMK's key material.
|
KeyMetadata |
withSigningAlgorithms(java.util.Collection<java.lang.String> signingAlgorithms)
The signing algorithms that the CMK supports.
|
KeyMetadata |
withSigningAlgorithms(java.lang.String... signingAlgorithms)
The signing algorithms that the CMK supports.
|
KeyMetadata |
withValidTo(java.util.Date validTo)
The time at which the imported key material expires.
|
public java.lang.String getAWSAccountId()
The twelve-digit account ID of the AWS account that owns the CMK.
The twelve-digit account ID of the AWS account that owns the CMK.
public void setAWSAccountId(java.lang.String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
aWSAccountId
- The twelve-digit account ID of the AWS account that owns the CMK.
public KeyMetadata withAWSAccountId(java.lang.String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
Returns a reference to this object so that method calls can be chained together.
aWSAccountId
- The twelve-digit account ID of the AWS account that owns the CMK.
public java.lang.String getKeyId()
The globally unique identifier for the CMK.
Constraints:
Length: 1 - 2048
The globally unique identifier for the CMK.
public void setKeyId(java.lang.String keyId)
The globally unique identifier for the CMK.
Constraints:
Length: 1 - 2048
keyId
- The globally unique identifier for the CMK.
public KeyMetadata withKeyId(java.lang.String keyId)
The globally unique identifier for the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId
- The globally unique identifier for the CMK.
public java.lang.String getArn()
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
Constraints:
Length: 20 - 2048
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
public KeyMetadata withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
public java.util.Date getCreationDate()
The date and time when the CMK was created.
The date and time when the CMK was created.
public void setCreationDate(java.util.Date creationDate)
The date and time when the CMK was created.
creationDate
- The date and time when the CMK was created.
public KeyMetadata withCreationDate(java.util.Date creationDate)
The date and time when the CMK was created.
Returns a reference to this object so that method calls can be chained together.
creationDate
- The date and time when the CMK was created.
public java.lang.Boolean isEnabled()
Specifies whether the CMK is enabled. When KeyState
is
Enabled
this value is true, otherwise it is false.
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true, otherwise it is
false.
public java.lang.Boolean getEnabled()
Specifies whether the CMK is enabled. When KeyState
is
Enabled
this value is true, otherwise it is false.
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true, otherwise it is
false.
public void setEnabled(java.lang.Boolean enabled)
Specifies whether the CMK is enabled. When KeyState
is
Enabled
this value is true, otherwise it is false.
enabled
-
Specifies whether the CMK is enabled. When
KeyState
is Enabled
this value is
true, otherwise it is false.
public KeyMetadata withEnabled(java.lang.Boolean enabled)
Specifies whether the CMK is enabled. When KeyState
is
Enabled
this value is true, otherwise it is false.
Returns a reference to this object so that method calls can be chained together.
enabled
-
Specifies whether the CMK is enabled. When
KeyState
is Enabled
this value is
true, otherwise it is false.
public java.lang.String getDescription()
The description of the CMK.
Constraints:
Length: 0 - 8192
The description of the CMK.
public void setDescription(java.lang.String description)
The description of the CMK.
Constraints:
Length: 0 - 8192
description
- The description of the CMK.
public KeyMetadata withDescription(java.lang.String description)
The description of the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8192
description
- The description of the CMK.
public java.lang.String getKeyUsage()
The cryptographic operations for which you can use the CMK.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
The cryptographic operations for which you can use the CMK.
KeyUsageType
public void setKeyUsage(java.lang.String keyUsage)
The cryptographic operations for which you can use the CMK.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
keyUsage
- The cryptographic operations for which you can use the CMK.
KeyUsageType
public KeyMetadata withKeyUsage(java.lang.String keyUsage)
The cryptographic operations for which you can use the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
keyUsage
- The cryptographic operations for which you can use the CMK.
KeyUsageType
public void setKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
keyUsage
- The cryptographic operations for which you can use the CMK.
KeyUsageType
public KeyMetadata withKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
keyUsage
- The cryptographic operations for which you can use the CMK.
KeyUsageType
public java.lang.String getKeyState()
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: Enabled, Disabled, PendingDeletion, PendingImport,
Unavailable
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public void setKeyState(java.lang.String keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: Enabled, Disabled, PendingDeletion, PendingImport,
Unavailable
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public KeyMetadata withKeyState(java.lang.String keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Enabled, Disabled, PendingDeletion, PendingImport,
Unavailable
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public void setKeyState(KeyState keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: Enabled, Disabled, PendingDeletion, PendingImport,
Unavailable
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public KeyMetadata withKeyState(KeyState keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Enabled, Disabled, PendingDeletion, PendingImport,
Unavailable
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public java.util.Date getDeletionDate()
The date and time after which AWS KMS deletes the CMK. This value is
present only when KeyState
is PendingDeletion
.
The date and time after which AWS KMS deletes the CMK. This value
is present only when KeyState
is
PendingDeletion
.
public void setDeletionDate(java.util.Date deletionDate)
The date and time after which AWS KMS deletes the CMK. This value is
present only when KeyState
is PendingDeletion
.
deletionDate
-
The date and time after which AWS KMS deletes the CMK. This
value is present only when KeyState
is
PendingDeletion
.
public KeyMetadata withDeletionDate(java.util.Date deletionDate)
The date and time after which AWS KMS deletes the CMK. This value is
present only when KeyState
is PendingDeletion
.
Returns a reference to this object so that method calls can be chained together.
deletionDate
-
The date and time after which AWS KMS deletes the CMK. This
value is present only when KeyState
is
PendingDeletion
.
public java.util.Date getValidTo()
The time at which the imported key material expires. When the key
material expires, AWS KMS deletes the key material and the CMK becomes
unusable. This value is present only for CMKs whose Origin
is EXTERNAL
and whose ExpirationModel
is
KEY_MATERIAL_EXPIRES
, otherwise this value is omitted.
The time at which the imported key material expires. When the key
material expires, AWS KMS deletes the key material and the CMK
becomes unusable. This value is present only for CMKs whose
Origin
is EXTERNAL
and whose
ExpirationModel
is KEY_MATERIAL_EXPIRES
, otherwise this value is omitted.
public void setValidTo(java.util.Date validTo)
The time at which the imported key material expires. When the key
material expires, AWS KMS deletes the key material and the CMK becomes
unusable. This value is present only for CMKs 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, AWS KMS deletes the key material and the
CMK becomes unusable. This value is present only for CMKs
whose Origin
is EXTERNAL
and whose
ExpirationModel
is
KEY_MATERIAL_EXPIRES
, otherwise this value is
omitted.
public KeyMetadata withValidTo(java.util.Date validTo)
The time at which the imported key material expires. When the key
material expires, AWS KMS deletes the key material and the CMK becomes
unusable. This value is present only for CMKs whose Origin
is EXTERNAL
and whose ExpirationModel
is
KEY_MATERIAL_EXPIRES
, otherwise this value is omitted.
Returns a reference to this object so that method calls can be chained together.
validTo
-
The time at which the imported key material expires. When the
key material expires, AWS KMS deletes the key material and the
CMK becomes unusable. This value is present only for CMKs
whose Origin
is EXTERNAL
and whose
ExpirationModel
is
KEY_MATERIAL_EXPIRES
, otherwise this value is
omitted.
public java.lang.String getOrigin()
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this value
is EXTERNAL
, the key material was imported from your
existing key management infrastructure or the CMK lacks key material.
When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
Constraints:
Allowed Values: AWS_KMS, EXTERNAL, AWS_CLOUDHSM
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this
value is EXTERNAL
, the key material was imported
from your existing key management infrastructure or the CMK lacks
key material. When this value is AWS_CLOUDHSM
, the
key material was created in the AWS CloudHSM cluster associated
with a custom key store.
OriginType
public void setOrigin(java.lang.String origin)
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this value
is EXTERNAL
, the key material was imported from your
existing key management infrastructure or the CMK lacks key material.
When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
Constraints:
Allowed Values: AWS_KMS, EXTERNAL, AWS_CLOUDHSM
origin
-
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When
this value is EXTERNAL
, the key material was
imported from your existing key management infrastructure or
the CMK lacks key material. When this value is
AWS_CLOUDHSM
, the key material was created in the
AWS CloudHSM cluster associated with a custom key store.
OriginType
public KeyMetadata withOrigin(java.lang.String origin)
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this value
is EXTERNAL
, the key material was imported from your
existing key management infrastructure or the CMK lacks key material.
When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS_KMS, EXTERNAL, AWS_CLOUDHSM
origin
-
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When
this value is EXTERNAL
, the key material was
imported from your existing key management infrastructure or
the CMK lacks key material. When this value is
AWS_CLOUDHSM
, the key material was created in the
AWS CloudHSM cluster associated with a custom key store.
OriginType
public void setOrigin(OriginType origin)
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this value
is EXTERNAL
, the key material was imported from your
existing key management infrastructure or the CMK lacks key material.
When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
Constraints:
Allowed Values: AWS_KMS, EXTERNAL, AWS_CLOUDHSM
origin
-
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When
this value is EXTERNAL
, the key material was
imported from your existing key management infrastructure or
the CMK lacks key material. When this value is
AWS_CLOUDHSM
, the key material was created in the
AWS CloudHSM cluster associated with a custom key store.
OriginType
public KeyMetadata withOrigin(OriginType origin)
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When this value
is EXTERNAL
, the key material was imported from your
existing key management infrastructure or the CMK lacks key material.
When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS_KMS, EXTERNAL, AWS_CLOUDHSM
origin
-
The source of the CMK's key material. When this value is
AWS_KMS
, AWS KMS created the key material. When
this value is EXTERNAL
, the key material was
imported from your existing key management infrastructure or
the CMK lacks key material. When this value is
AWS_CLOUDHSM
, the key material was created in the
AWS CloudHSM cluster associated with a custom key store.
OriginType
public java.lang.String getCustomKeyStoreId()
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
Constraints:
Length: 1 - 64
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
public void setCustomKeyStoreId(java.lang.String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
Constraints:
Length: 1 - 64
customKeyStoreId
- A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
public KeyMetadata withCustomKeyStoreId(java.lang.String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
customKeyStoreId
- A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
public java.lang.String getCloudHsmClusterId()
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
Constraints:
Length: 19 - 24
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
public void setCloudHsmClusterId(java.lang.String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
Constraints:
Length: 19 - 24
cloudHsmClusterId
- The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
public KeyMetadata withCloudHsmClusterId(java.lang.String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 19 - 24
cloudHsmClusterId
- The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
public java.lang.String getExpirationModel()
Specifies whether the CMK's key material expires. This value is present
only when Origin
is EXTERNAL
, otherwise this
value is omitted.
Constraints:
Allowed Values: KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
Specifies whether the CMK's key material expires. This value is
present only when Origin
is EXTERNAL
,
otherwise this value is omitted.
ExpirationModelType
public void setExpirationModel(java.lang.String expirationModel)
Specifies whether the CMK's key material expires. This value is present
only when Origin
is EXTERNAL
, otherwise this
value is omitted.
Constraints:
Allowed Values: KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
expirationModel
-
Specifies whether the CMK's key material expires. This value
is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
ExpirationModelType
public KeyMetadata withExpirationModel(java.lang.String expirationModel)
Specifies whether the CMK's key material expires. This value is present
only when Origin
is EXTERNAL
, otherwise this
value is omitted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
expirationModel
-
Specifies whether the CMK's key material expires. This value
is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
ExpirationModelType
public void setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires. This value is present
only when Origin
is EXTERNAL
, otherwise this
value is omitted.
Constraints:
Allowed Values: KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
expirationModel
-
Specifies whether the CMK's key material expires. This value
is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
ExpirationModelType
public KeyMetadata withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires. This value is present
only when Origin
is EXTERNAL
, otherwise this
value is omitted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
expirationModel
-
Specifies whether the CMK's key material expires. This value
is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
ExpirationModelType
public java.lang.String getKeyManager()
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: AWS, CUSTOMER
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public void setKeyManager(java.lang.String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: AWS, CUSTOMER
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public KeyMetadata withKeyManager(java.lang.String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS, CUSTOMER
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public void setKeyManager(KeyManagerType keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
Constraints:
Allowed Values: AWS, CUSTOMER
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public KeyMetadata withKeyManager(KeyManagerType keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS, CUSTOMER
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public java.lang.String getCustomerMasterKeySpec()
Describes the type of key material in the CMK.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
Describes the type of key material in the CMK.
CustomerMasterKeySpec
public void setCustomerMasterKeySpec(java.lang.String customerMasterKeySpec)
Describes the type of key material in the CMK.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec
- Describes the type of key material in the CMK.
CustomerMasterKeySpec
public KeyMetadata withCustomerMasterKeySpec(java.lang.String customerMasterKeySpec)
Describes the type of key material in the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec
- Describes the type of key material in the CMK.
CustomerMasterKeySpec
public void setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec
- Describes the type of key material in the CMK.
CustomerMasterKeySpec
public KeyMetadata withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec
- Describes the type of key material in the CMK.
CustomerMasterKeySpec
public java.util.List<java.lang.String> getEncryptionAlgorithms()
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
ENCRYPT_DECRYPT
.
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK
is ENCRYPT_DECRYPT
.
public void setEncryptionAlgorithms(java.util.Collection<java.lang.String> encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is ENCRYPT_DECRYPT
.
public KeyMetadata withEncryptionAlgorithms(java.lang.String... encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
ENCRYPT_DECRYPT
.
Returns a reference to this object so that method calls can be chained together.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is ENCRYPT_DECRYPT
.
public KeyMetadata withEncryptionAlgorithms(java.util.Collection<java.lang.String> encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
ENCRYPT_DECRYPT
.
Returns a reference to this object so that method calls can be chained together.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is ENCRYPT_DECRYPT
.
public java.util.List<java.lang.String> getSigningAlgorithms()
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
SIGN_VERIFY
.
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK
is SIGN_VERIFY
.
public void setSigningAlgorithms(java.util.Collection<java.lang.String> signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is SIGN_VERIFY
.
public KeyMetadata withSigningAlgorithms(java.lang.String... signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
SIGN_VERIFY
.
Returns a reference to this object so that method calls can be chained together.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is SIGN_VERIFY
.
public KeyMetadata withSigningAlgorithms(java.util.Collection<java.lang.String> signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is
SIGN_VERIFY
.
Returns a reference to this object so that method calls can be chained together.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the
CMK is SIGN_VERIFY
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.