Class CryptoProviderOptions

java.lang.Object
dev.orne.config.impl.CryptoProviderOptions

@API(status=INTERNAL, since="1.0") public class CryptoProviderOptions extends Object
Configuration values cryptography transformations provider builder options.
Since:
1.0
Version:
1.0, 2025-05
Author:
(w) Iker Hernaez
See Also:
  • Field Details

    • engine

      protected ConfigCryptoEngine engine
      The cryptography engine to use.
    • destroyEngine

      protected boolean destroyEngine
      If the cryptography engine must be destroyed on provider destruction.
    • key

      protected SecretKey key
      The secret key to use.
    • pooled

      protected boolean pooled
      If multiple pooled Cipher instances should be used.
  • Constructor Details

    • CryptoProviderOptions

      public CryptoProviderOptions()
      Creates a new instance.
    • CryptoProviderOptions

      public CryptoProviderOptions(@NotNull @NotNull CryptoProviderOptions copy)
      Copy constructor.
      Parameters:
      copy - The instance to copy.
  • Method Details

    • getEngine

      public ConfigCryptoEngine getEngine()
      Returns the cryptography engine to use.
      Returns:
      The cryptography engine to use.
    • setEngine

      public void setEngine(ConfigCryptoEngine engine)
      Sets the cryptography engine to use.
      Parameters:
      engine - The cryptography engine to use.
    • isDestroyEngine

      public boolean isDestroyEngine()
      Returns true if the cryptography engine must be destroyed on provider destruction.
      Returns:
      If the cryptography engine must be destroyed on provider destruction.
    • setDestroyEngine

      public void setDestroyEngine(boolean destroyEngine)
      Sets if the cryptography engine must be destroyed on provider destruction.
      Parameters:
      destroyEngine - If the cryptography engine must be destroyed on provider destruction.
    • getKey

      public SecretKey getKey()
      Returns the secret key to use.
      Returns:
      The secret key to use.
    • setKey

      public void setKey(SecretKey key)
      Sets the secret key to use.
      Parameters:
      key - The secret key to use.
    • isPooled

      public boolean isPooled()
      Returns true if multiple pooled Cipher instances should be used.
      Returns:
      If multiple pooled Cipher instances should be used.
    • setPooled

      public void setPooled(boolean pooled)
      Sets if multiple pooled Cipher instances should be used.
      Parameters:
      pooled - If multiple pooled Cipher instances should be used.