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 void
applyConfigurationChange(boolean isEncrypted, String transformation, int keyLength)
Defines new encryption configuration for newCryptoManager.CipherService
s.boolean
isEncrypted()
Return whether encryption is enabled.CryptoManager.CipherService
newCipherService()
Returns a newCryptoManager.CipherService
initialized 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
-true
if 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.CipherService
s.- Parameters:
isEncrypted
-true
if 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.CipherService
initialized with the current configuration.- Returns:
- a new crypto service initialized with the current configuration
- Throws:
CryptoManagerException
- if an error occurs
-
-