Class MOXodusPersistence.EncryptionSpec
java.lang.Object
org.snmp4j.agent.db.MOXodusPersistence.EncryptionSpec
- Enclosing class:
MOXodusPersistence
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 Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe full algorithm identifier this specification was parsed from.final StringThe cipher transformation (e.g.final booleantrueif the cipher transformation uses GCM mode.final intThe number of iterations used by the key derivation function.final intThe initialization vector size in bytes, derived from the cipher mode.final StringThe key derivation function (KDF) name.final intThe key size in bits. -
Constructor Summary
ConstructorsConstructorDescriptionEncryptionSpec(String algorithmId, String kdf, int iterations, String cipherTransformation, int keyBits) Creates a new encryption specification from its parsed components. -
Method Summary
-
Field Details
-
algorithmId
The full algorithm identifier this specification was parsed from. -
kdf
The key derivation function (KDF) name. -
iterations
public final int iterationsThe number of iterations used by the key derivation function. -
cipherTransformation
The cipher transformation (e.g.AES/GCM/NoPadding). -
keyBits
public final int keyBitsThe key size in bits. -
ivBytes
public final int ivBytesThe initialization vector size in bytes, derived from the cipher mode. -
gcm
public final boolean gcmtrueif 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.
-