Interface Key.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Key.Builder,Key>,SdkBuilder<Key.Builder,Key>,SdkPojo
- Enclosing class:
- Key
public static interface Key.Builder extends SdkPojo, CopyableBuilder<Key.Builder,Key>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Key.BuildercreateTimestamp(Instant createTimestamp)The date and time when the key was created.Key.BuilderdeletePendingTimestamp(Instant deletePendingTimestamp)The date and time after which Amazon Web Services Payment Cryptography will delete the key.Key.BuilderdeleteTimestamp(Instant deleteTimestamp)The date and time after which Amazon Web Services Payment Cryptography will delete the key.Key.Builderenabled(Boolean enabled)Specifies whether the key is enabled.Key.Builderexportable(Boolean exportable)Specifies whether the key is exportable.Key.BuilderkeyArn(String keyArn)The Amazon Resource Name (ARN) of the key.default Key.BuilderkeyAttributes(Consumer<KeyAttributes.Builder> keyAttributes)The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.Key.BuilderkeyAttributes(KeyAttributes keyAttributes)The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key.Key.BuilderkeyCheckValue(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.Key.BuilderkeyCheckValueAlgorithm(String keyCheckValueAlgorithm)The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).Key.BuilderkeyCheckValueAlgorithm(KeyCheckValueAlgorithm keyCheckValueAlgorithm)The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV).Key.BuilderkeyOrigin(String keyOrigin)The source of the key material.Key.BuilderkeyOrigin(KeyOrigin keyOrigin)The source of the key material.Key.BuilderkeyState(String keyState)The state of key that is being created or deleted.Key.BuilderkeyState(KeyState keyState)The state of key that is being created or deleted.Key.BuilderusageStartTimestamp(Instant usageStartTimestamp)The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.Key.BuilderusageStopTimestamp(Instant usageStopTimestamp)The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
createTimestamp
Key.Builder createTimestamp(Instant createTimestamp)
The date and time when the key was created.
- Parameters:
createTimestamp- The date and time when the key was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletePendingTimestamp
Key.Builder deletePendingTimestamp(Instant deletePendingTimestamp)
The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when
KeyStateisDELETE_PENDINGand the key is scheduled for deletion.- Parameters:
deletePendingTimestamp- The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only whenKeyStateisDELETE_PENDINGand the key is scheduled for deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteTimestamp
Key.Builder deleteTimestamp(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
KeyStateisDELETE_COMPLETEand the Amazon Web Services Payment Cryptography key is deleted.- Parameters:
deleteTimestamp- The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when theKeyStateisDELETE_COMPLETEand the Amazon Web Services Payment Cryptography key is deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
Key.Builder enabled(Boolean enabled)
Specifies whether the key is enabled.
- Parameters:
enabled- Specifies whether the key is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportable
Key.Builder exportable(Boolean exportable)
Specifies whether the key is exportable. This data is immutable after the key is created.
- Parameters:
exportable- Specifies whether the key is exportable. This data is immutable after the key is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyArn
Key.Builder keyArn(String keyArn)
The Amazon Resource Name (ARN) of the key.
- Parameters:
keyArn- The Amazon Resource Name (ARN) of the key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyAttributes
Key.Builder keyAttributes(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
keyAttributes
default Key.Builder keyAttributes(Consumer<KeyAttributes.Builder> 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.
This is a convenience method that creates an instance of theKeyAttributes.Builderavoiding the need to create one manually viaKeyAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyAttributes(KeyAttributes).- Parameters:
keyAttributes- a consumer that will call methods onKeyAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
keyAttributes(KeyAttributes)
-
keyCheckValue
Key.Builder keyCheckValue(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyCheckValueAlgorithm
Key.Builder keyCheckValueAlgorithm(String 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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyCheckValueAlgorithm,KeyCheckValueAlgorithm
-
keyCheckValueAlgorithm
Key.Builder keyCheckValueAlgorithm(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyCheckValueAlgorithm,KeyCheckValueAlgorithm
-
keyOrigin
Key.Builder keyOrigin(String 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 isEXTERNAL.- Parameters:
keyOrigin- The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value isAWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value isEXTERNAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyOrigin,KeyOrigin
-
keyOrigin
Key.Builder keyOrigin(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 isEXTERNAL.- Parameters:
keyOrigin- The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value isAWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value isEXTERNAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyOrigin,KeyOrigin
-
keyState
Key.Builder keyState(String keyState)
The state of key that is being created or deleted.
-
keyState
Key.Builder keyState(KeyState keyState)
The state of key that is being created or deleted.
-
usageStartTimestamp
Key.Builder usageStartTimestamp(Instant usageStartTimestamp)
The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.
- Parameters:
usageStartTimestamp- The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageStopTimestamp
Key.Builder usageStopTimestamp(Instant usageStopTimestamp)
The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.
- Parameters:
usageStopTimestamp- The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-