Class CreateKeyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.paymentcryptography.model.PaymentCryptographyRequest
-
- software.amazon.awssdk.services.paymentcryptography.model.CreateKeyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateKeyRequest.Builder,CreateKeyRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateKeyRequest extends PaymentCryptographyRequest implements ToCopyableBuilder<CreateKeyRequest.Builder,CreateKeyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateKeyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateKeyRequest.Builderbuilder()DeriveKeyUsagederiveKeyUsage()The intended cryptographic usage of keys derived from the ECC key pair to be created.StringderiveKeyUsageAsString()The intended cryptographic usage of keys derived from the ECC key pair to be created.Booleanenabled()Specifies whether to enable the key.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanexportable()Specifies whether the key is exportable from the service.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasReplicationRegions()For responses, this returns true if the service returned a value for the ReplicationRegions property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.KeyAttributeskeyAttributes()The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.KeyCheckValueAlgorithmkeyCheckValueAlgorithm()The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).StringkeyCheckValueAlgorithmAsString()The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).List<String>replicationRegions()Returns the value of the ReplicationRegions property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateKeyRequest.Builder>serializableBuilderClass()List<Tag>tags()Assigns one or more tags to the Amazon Web Services Payment Cryptography key.CreateKeyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
keyAttributes
public final 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.
- Returns:
- 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.
-
keyCheckValueAlgorithm
public final KeyCheckValueAlgorithm keyCheckValueAlgorithm()
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
If the service returns an enum value that is not available in the current SDK version,
keyCheckValueAlgorithmwill returnKeyCheckValueAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyCheckValueAlgorithmAsString().- Returns:
- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).
It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- See Also:
KeyCheckValueAlgorithm
-
keyCheckValueAlgorithmAsString
public final String keyCheckValueAlgorithmAsString()
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
If the service returns an enum value that is not available in the current SDK version,
keyCheckValueAlgorithmwill returnKeyCheckValueAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyCheckValueAlgorithmAsString().- Returns:
- The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).
It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- See Also:
KeyCheckValueAlgorithm
-
exportable
public final Boolean exportable()
Specifies whether the key is exportable from the service.
- Returns:
- Specifies whether the key is exportable from the service.
-
enabled
public final Boolean enabled()
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key is not enabled, then it is created but not activated. The default value is enabled.
- Returns:
- Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key is not enabled, then it is created but not activated. The default value is enabled.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final List<Tag> tags()
Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is created. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.
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.
Don't include personal, 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a
key when it is created. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.
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.
Don't include personal, 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.
-
deriveKeyUsage
public final DeriveKeyUsage deriveKeyUsage()
The intended cryptographic usage of keys derived from the ECC key pair to be created.
After creating an ECC key pair, you cannot change the intended cryptographic usage of keys derived from it using ECDH.
If the service returns an enum value that is not available in the current SDK version,
deriveKeyUsagewill returnDeriveKeyUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromderiveKeyUsageAsString().- Returns:
- The intended cryptographic usage of keys derived from the ECC key pair to be created.
After creating an ECC key pair, you cannot change the intended cryptographic usage of keys derived from it using ECDH.
- See Also:
DeriveKeyUsage
-
deriveKeyUsageAsString
public final String deriveKeyUsageAsString()
The intended cryptographic usage of keys derived from the ECC key pair to be created.
After creating an ECC key pair, you cannot change the intended cryptographic usage of keys derived from it using ECDH.
If the service returns an enum value that is not available in the current SDK version,
deriveKeyUsagewill returnDeriveKeyUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromderiveKeyUsageAsString().- Returns:
- The intended cryptographic usage of keys derived from the ECC key pair to be created.
After creating an ECC key pair, you cannot change the intended cryptographic usage of keys derived from it using ECDH.
- See Also:
DeriveKeyUsage
-
hasReplicationRegions
public final boolean hasReplicationRegions()
For responses, this returns true if the service returned a value for the ReplicationRegions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
replicationRegions
public final List<String> replicationRegions()
Returns the value of the ReplicationRegions property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasReplicationRegions()method.- Returns:
- The value of the ReplicationRegions property for this object.
-
toBuilder
public CreateKeyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateKeyRequest.Builder,CreateKeyRequest>- Specified by:
toBuilderin classPaymentCryptographyRequest
-
builder
public static CreateKeyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateKeyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-