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 Details

    • 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:
    • 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:
    • 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

      Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.

      Parameters:
      keySpec - Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keySpec

      Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.

      Parameters:
      keySpec - Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the KeyUsageProperty.Builder avoiding the need to create one manually via KeyUsageProperty.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to keyUsageProperty(KeyUsageProperty).

      Parameters:
      keyUsageProperty - a consumer that will call methods on KeyUsageProperty.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.