Interface PrivateKeyAttributesV4.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PrivateKeyAttributesV4.Builder,PrivateKeyAttributesV4>,SdkBuilder<PrivateKeyAttributesV4.Builder,PrivateKeyAttributesV4>,SdkPojo
- Enclosing class:
- PrivateKeyAttributesV4
public static interface PrivateKeyAttributesV4.Builder extends SdkPojo, CopyableBuilder<PrivateKeyAttributesV4.Builder,PrivateKeyAttributesV4>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PrivateKeyAttributesV4.Builderalgorithm(String algorithm)Defines the algorithm used to generate the private key.PrivateKeyAttributesV4.Builderalgorithm(PrivateKeyAlgorithm algorithm)Defines the algorithm used to generate the private key.PrivateKeyAttributesV4.BuildercryptoProviders(String... cryptoProviders)Defines the cryptographic providers used to generate the private key.PrivateKeyAttributesV4.BuildercryptoProviders(Collection<String> cryptoProviders)Defines the cryptographic providers used to generate the private key.PrivateKeyAttributesV4.BuilderkeySpec(String keySpec)Defines the purpose of the private key.PrivateKeyAttributesV4.BuilderkeySpec(KeySpec keySpec)Defines the purpose of the private key.default PrivateKeyAttributesV4.BuilderkeyUsageProperty(Consumer<KeyUsageProperty.Builder> keyUsageProperty)The key usage property defines the purpose of the private key contained in the certificate.PrivateKeyAttributesV4.BuilderkeyUsageProperty(KeyUsageProperty keyUsageProperty)The key usage property defines the purpose of the private key contained in the certificate.PrivateKeyAttributesV4.BuilderminimalKeyLength(Integer minimalKeyLength)Set the minimum key length of the private key.-
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
-
algorithm
PrivateKeyAttributesV4.Builder algorithm(String algorithm)
Defines the algorithm used to generate the private key.
- Parameters:
algorithm- Defines the algorithm used to generate the private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PrivateKeyAlgorithm,PrivateKeyAlgorithm
-
algorithm
PrivateKeyAttributesV4.Builder algorithm(PrivateKeyAlgorithm algorithm)
Defines the algorithm used to generate the private key.
- Parameters:
algorithm- Defines the algorithm used to generate the private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PrivateKeyAlgorithm,PrivateKeyAlgorithm
-
cryptoProviders
PrivateKeyAttributesV4.Builder cryptoProviders(Collection<String> cryptoProviders)
Defines the cryptographic providers used to generate the private key.
- Parameters:
cryptoProviders- Defines the cryptographic providers used to generate the private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cryptoProviders
PrivateKeyAttributesV4.Builder cryptoProviders(String... cryptoProviders)
Defines the cryptographic providers used to generate the private key.
- Parameters:
cryptoProviders- Defines the cryptographic providers used to generate the private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySpec
PrivateKeyAttributesV4.Builder keySpec(String keySpec)
Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.
-
keySpec
PrivateKeyAttributesV4.Builder keySpec(KeySpec keySpec)
Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.
-
keyUsageProperty
PrivateKeyAttributesV4.Builder keyUsageProperty(KeyUsageProperty keyUsageProperty)
The key usage property defines the purpose of the private key contained in the certificate. You can specify specific purposes using property flags or all by using property type ALL.
- Parameters:
keyUsageProperty- The key usage property defines the purpose of the private key contained in the certificate. You can specify specific purposes using property flags or all by using property type ALL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyUsageProperty
default PrivateKeyAttributesV4.Builder keyUsageProperty(Consumer<KeyUsageProperty.Builder> keyUsageProperty)
The key usage property defines the purpose of the private key contained in the certificate. You can specify specific purposes using property flags or all by using property type ALL.
This is a convenience method that creates an instance of theKeyUsageProperty.Builderavoiding the need to create one manually viaKeyUsageProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyUsageProperty(KeyUsageProperty).- Parameters:
keyUsageProperty- a consumer that will call methods onKeyUsageProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
keyUsageProperty(KeyUsageProperty)
-
minimalKeyLength
PrivateKeyAttributesV4.Builder minimalKeyLength(Integer minimalKeyLength)
Set the minimum key length of the private key.
- Parameters:
minimalKeyLength- Set the minimum key length of the private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-