@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateKeyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Specifies whether to enable the key.
|
Boolean |
getExportable()
Specifies whether the key is exportable from the service.
|
KeyAttributes |
getKeyAttributes()
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
|
String |
getKeyCheckValueAlgorithm()
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES
and AES keys.
|
List<Tag> |
getTags()
The tags to attach to the key.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether to enable the key.
|
Boolean |
isExportable()
Specifies whether the key is exportable from the service.
|
void |
setEnabled(Boolean enabled)
Specifies whether to enable the key.
|
void |
setExportable(Boolean exportable)
Specifies whether the key is exportable from the service.
|
void |
setKeyAttributes(KeyAttributes keyAttributes)
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
|
void |
setKeyCheckValueAlgorithm(String keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES
and AES keys.
|
void |
setTags(Collection<Tag> tags)
The tags to attach to the key.
|
String |
toString()
Returns a string representation of this object.
|
CreateKeyRequest |
withEnabled(Boolean enabled)
Specifies whether to enable the key.
|
CreateKeyRequest |
withExportable(Boolean exportable)
Specifies whether the key is exportable from the service.
|
CreateKeyRequest |
withKeyAttributes(KeyAttributes keyAttributes)
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
|
CreateKeyRequest |
withKeyCheckValueAlgorithm(KeyCheckValueAlgorithm keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES
and AES keys.
|
CreateKeyRequest |
withKeyCheckValueAlgorithm(String keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES
and AES keys.
|
CreateKeyRequest |
withTags(Collection<Tag> tags)
The tags to attach to the key.
|
CreateKeyRequest |
withTags(Tag... tags)
The tags to attach to the key.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setEnabled(Boolean enabled)
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value is enabled.
enabled
- Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If
the key not enabled, then it is created but not activated. The default value is enabled.public Boolean getEnabled()
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value is enabled.
public CreateKeyRequest withEnabled(Boolean enabled)
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value is enabled.
enabled
- Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If
the key not enabled, then it is created but not activated. The default value is enabled.public Boolean isEnabled()
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value is enabled.
public void setExportable(Boolean exportable)
Specifies whether the key is exportable from the service.
exportable
- Specifies whether the key is exportable from the service.public Boolean getExportable()
Specifies whether the key is exportable from the service.
public CreateKeyRequest withExportable(Boolean exportable)
Specifies whether the key is exportable from the service.
exportable
- Specifies whether the key is exportable from the service.public Boolean isExportable()
Specifies whether the key is exportable from the service.
public void setKeyAttributes(KeyAttributes keyAttributes)
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
keyAttributes
- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
This data is immutable after the key is created.public KeyAttributes getKeyAttributes()
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
public CreateKeyRequest withKeyAttributes(KeyAttributes keyAttributes)
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
keyAttributes
- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
This data is immutable after the key is created.public void setKeyCheckValueAlgorithm(String keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
keyCheckValueAlgorithm
- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV)
for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
KeyCheckValueAlgorithm
public String getKeyCheckValueAlgorithm()
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
KeyCheckValueAlgorithm
public CreateKeyRequest withKeyCheckValueAlgorithm(String keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
keyCheckValueAlgorithm
- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV)
for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
KeyCheckValueAlgorithm
public CreateKeyRequest withKeyCheckValueAlgorithm(KeyCheckValueAlgorithm keyCheckValueAlgorithm)
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
keyCheckValueAlgorithm
- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV)
for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
KeyCheckValueAlgorithm
public List<Tag> getTags()
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
public void setTags(Collection<Tag> tags)
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
tags
- The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the
tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag
on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
public CreateKeyRequest withTags(Tag... tags)
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the
tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag
on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
public CreateKeyRequest withTags(Collection<Tag> tags)
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
tags
- The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the
tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag
on an Amazon Web Services Payment Cryptography key with the same tag key.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
public String toString()
toString
in class Object
Object.toString()
public CreateKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()