@Generated(value="software.amazon.awssdk:codegen") public final class Key extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Key.Builder,Key>
Metadata about an Amazon Web Services Payment Cryptography key.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Key.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Key.Builder |
builder() |
Instant |
createTimestamp()
The date and time when the key was created.
|
Instant |
deletePendingTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will delete the key.
|
Instant |
deleteTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will delete the key.
|
Boolean |
enabled()
Specifies whether the key is enabled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
exportable()
Specifies whether the key is exportable.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
keyArn()
The Amazon Resource Name (ARN) of the key.
|
KeyAttributes |
keyAttributes()
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.
|
String |
keyCheckValue()
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that
a key has changed.
|
KeyCheckValueAlgorithm |
keyCheckValueAlgorithm()
The algorithm used for calculating key check value (KCV) for DES and AES keys.
|
String |
keyCheckValueAlgorithmAsString()
The algorithm used for calculating key check value (KCV) for DES and AES keys.
|
KeyOrigin |
keyOrigin()
The source of the key material.
|
String |
keyOriginAsString()
The source of the key material.
|
KeyState |
keyState()
The state of key that is being created or deleted.
|
String |
keyStateAsString()
The state of key that is being created or deleted.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Key.Builder> |
serializableBuilderClass() |
Key.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
usageStartTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will start using the key material for
cryptographic operations.
|
Instant |
usageStopTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for
cryptographic operations.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant createTimestamp()
The date and time when the key was created.
public final Instant deletePendingTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present
only when KeyState is DELETE_PENDING and the key is scheduled for deletion.
KeyState is DELETE_PENDING and the key is scheduled for
deletion.public final Instant deleteTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present
only when when the KeyState is DELETE_COMPLETE and the Amazon Web Services Payment
Cryptography key is deleted.
KeyState is DELETE_COMPLETE and the Amazon Web
Services Payment Cryptography key is deleted.public final Boolean enabled()
Specifies whether the key is enabled.
public final Boolean exportable()
Specifies whether the key is exportable. This data is immutable after the key is created.
public final String keyArn()
The Amazon Resource Name (ARN) of the key.
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.
public final String keyCheckValue()
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
public final KeyCheckValueAlgorithm keyCheckValueAlgorithm()
The algorithm used for calculating key check value (KCV) for DES and AES keys. For a DES key, Amazon Web Services Payment Cryptography computes the KCV 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 an AES key, Amazon Web Services Payment Cryptography computes the KCV 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.
If the service returns an enum value that is not available in the current SDK version,
keyCheckValueAlgorithm will return KeyCheckValueAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from keyCheckValueAlgorithmAsString().
KeyCheckValueAlgorithmpublic final String keyCheckValueAlgorithmAsString()
The algorithm used for calculating key check value (KCV) for DES and AES keys. For a DES key, Amazon Web Services Payment Cryptography computes the KCV 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 an AES key, Amazon Web Services Payment Cryptography computes the KCV 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.
If the service returns an enum value that is not available in the current SDK version,
keyCheckValueAlgorithm will return KeyCheckValueAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from keyCheckValueAlgorithmAsString().
KeyCheckValueAlgorithmpublic final KeyOrigin keyOrigin()
The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is
AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value
is EXTERNAL.
If the service returns an enum value that is not available in the current SDK version, keyOrigin will
return KeyOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyOriginAsString().
AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment
Cryptography, the value is EXTERNAL.KeyOriginpublic final String keyOriginAsString()
The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is
AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value
is EXTERNAL.
If the service returns an enum value that is not available in the current SDK version, keyOrigin will
return KeyOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyOriginAsString().
AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment
Cryptography, the value is EXTERNAL.KeyOriginpublic final KeyState keyState()
The state of key that is being created or deleted.
If the service returns an enum value that is not available in the current SDK version, keyState will
return KeyState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyStateAsString().
KeyStatepublic final String keyStateAsString()
The state of key that is being created or deleted.
If the service returns an enum value that is not available in the current SDK version, keyState will
return KeyState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyStateAsString().
KeyStatepublic final Instant usageStartTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.
public final Instant usageStopTimestamp()
The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.
public Key.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Key.Builder,Key>public static Key.Builder builder()
public static Class<? extends Key.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.