Class LogCryptoCfg


  • public class LogCryptoCfg
    extends Object
    Defines whether and how to encrypt replication changelog files.
    • Constructor Detail

      • LogCryptoCfg

        public LogCryptoCfg​(CryptoManager cryptoManager,
                            boolean isEncrypted,
                            String transformation,
                            int keyLength)
        Define new Configuration.
        Parameters:
        cryptoManager - the CryptoManager to use
        isEncrypted - true if changelog files are to be encrypted
        transformation - the cipher transformation for encryption
        keyLength - 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 new CryptoManager.CipherServices.
        Parameters:
        isEncrypted - true if changelog files are to be encrypted
        transformation - the cipher transformation for encryption
        keyLength - the cipher key length