Interface CryptoProviderEngineBuilder

All Known Implementing Classes:
CryptoProviderBuilderImpl

@API(status=STABLE, since="1.0") public interface CryptoProviderEngineBuilder
Required engine configuration values cryptography transformations provider builder.
Since:
1.0
Version:
1.0, 2025-05
Author:
(w) Iker Hernaez
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull CryptoProviderKeyBuilder
    withAesGcmEngine(@javax.validation.constraints.NotNull byte[] salt)
    Creates a new cryptography transformations provider builder based on Java Cryptography Architecture using AES with GCM symmetric algorithm.
    withAesGcmEngine(@javax.validation.constraints.NotNull byte[] salt, boolean destroyEngine)
    Creates a new cryptography transformations provider builder based on Java Cryptography Architecture using AES with GCM symmetric algorithm.
    default @NotNull CryptoProviderKeyBuilder
    withEngine(@NotNull ConfigCryptoEngine engine)
    Sets the cryptography transformations engine to use.
    withEngine(@NotNull ConfigCryptoEngine engine, boolean destroyEngine)
    Sets the cryptography transformations engine to use.
  • Method Details

    • withEngine

      @NotNull default @NotNull CryptoProviderKeyBuilder withEngine(@NotNull @NotNull ConfigCryptoEngine engine)
      Sets the cryptography transformations engine to use.
      Parameters:
      engine - The cryptography transformations engine to use.
      Returns:
      Next builder, for method chaining.
    • withEngine

      @NotNull @NotNull CryptoProviderKeyBuilder withEngine(@NotNull @NotNull ConfigCryptoEngine engine, boolean destroyEngine)
      Sets the cryptography transformations engine to use.
      Parameters:
      engine - The cryptography transformations engine to use.
      destroyEngine - If the cryptography engine must be destroyed on provider destruction.
      Returns:
      Next builder, for method chaining.
    • withAesGcmEngine

      @NotNull default @NotNull CryptoProviderKeyBuilder withAesGcmEngine(@NotNull @javax.validation.constraints.NotNull byte[] salt)
      Creates a new cryptography transformations provider builder based on Java Cryptography Architecture using AES with GCM symmetric algorithm.
      Parameters:
      salt - The salt to apply to password based secret keys.
      Returns:
      Next builder, for method chaining.
    • withAesGcmEngine

      @NotNull @NotNull CryptoProviderKeyBuilder withAesGcmEngine(@NotNull @javax.validation.constraints.NotNull byte[] salt, boolean destroyEngine)
      Creates a new cryptography transformations provider builder based on Java Cryptography Architecture using AES with GCM symmetric algorithm.
      Parameters:
      salt - The salt to apply to password based secret keys.
      destroyEngine - If the cryptography engine must be destroyed on provider destruction.
      Returns:
      Next builder, for method chaining.