Class MOXodusPersistence.EncryptionSpec

java.lang.Object
org.snmp4j.agent.db.MOXodusPersistence.EncryptionSpec
Enclosing class:
MOXodusPersistence

protected static class MOXodusPersistence.EncryptionSpec extends Object
A parsed representation of an algorithm identifier as accepted by MOXodusPersistence.setDefaultEncryptionAlgorithm(String). Subclasses may override MOXodusPersistence.parseEncryptionAlgorithm(String) to extend the supported set.
Since:
3.8.0
Version:
3.5.0
Author:
Frank Fock
  • Field Details

    • algorithmId

      public final String algorithmId
      The full algorithm identifier this specification was parsed from.
    • kdf

      public final String kdf
      The key derivation function (KDF) name.
    • iterations

      public final int iterations
      The number of iterations used by the key derivation function.
    • cipherTransformation

      public final String cipherTransformation
      The cipher transformation (e.g. AES/GCM/NoPadding).
    • keyBits

      public final int keyBits
      The key size in bits.
    • ivBytes

      public final int ivBytes
      The initialization vector size in bytes, derived from the cipher mode.
    • gcm

      public final boolean gcm
      true if the cipher transformation uses GCM mode.
  • Constructor Details

    • EncryptionSpec

      public EncryptionSpec(String algorithmId, String kdf, int iterations, String cipherTransformation, int keyBits)
      Creates a new encryption specification from its parsed components.
      Parameters:
      algorithmId - the full algorithm identifier this specification was parsed from.
      kdf - the key derivation function name.
      iterations - the number of iterations used by the key derivation function.
      cipherTransformation - the cipher transformation (e.g. AES/GCM/NoPadding).
      keyBits - the key size in bits.