Class LogCryptoCfg
- java.lang.Object
-
- org.opends.server.replication.server.changelog.file.LogCryptoCfg
-
public class LogCryptoCfg extends Object
Defines whether and how to encrypt replication changelog files.
-
-
Constructor Summary
Constructors Constructor Description LogCryptoCfg(CryptoManager cryptoManager, boolean isEncrypted, String transformation, int keyLength)Define new Configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyConfigurationChange(boolean isEncrypted, String transformation, int keyLength)Defines new encryption configuration for newCryptoManager.CipherServices.booleanisEncrypted()Return whether encryption is enabled.CryptoManager.CipherServicenewCipherService()Returns a newCryptoManager.CipherServiceinitialized with the current configuration.
-
-
-
Constructor Detail
-
LogCryptoCfg
public LogCryptoCfg(CryptoManager cryptoManager, boolean isEncrypted, String transformation, int keyLength)
Define new Configuration.- Parameters:
cryptoManager- the CryptoManager to useisEncrypted-trueif changelog files are to be encryptedtransformation- the cipher transformation for encryptionkeyLength- the cipher key length
-
-
Method Detail
-
isEncrypted
public boolean isEncrypted()
Return whether encryption is enabled.- Returns:
- whether encryption is enabled
-
applyConfigurationChange
public void applyConfigurationChange(boolean isEncrypted, String transformation, int keyLength)Defines new encryption configuration for newCryptoManager.CipherServices.- Parameters:
isEncrypted-trueif changelog files are to be encryptedtransformation- the cipher transformation for encryptionkeyLength- the cipher key length
-
newCipherService
public CryptoManager.CipherService newCipherService() throws CryptoManagerException
Returns a newCryptoManager.CipherServiceinitialized with the current configuration.- Returns:
- a new crypto service initialized with the current configuration
- Throws:
CryptoManagerException- if an error occurs
-
-