Class EncryptionUpgradeOperation

  • All Implemented Interfaces:
    org.craftercms.commons.upgrade.UpgradeOperation<Target>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class EncryptionUpgradeOperation
    extends org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
    Implementation of AbstractUpgradeOperation that updates all encrypted values in the target configuration.
    Since:
    3.1.9
    Author:
    joseross
    • Field Detail

      • DEFAULT_ENCRYPTED_PATTERN

        protected static String DEFAULT_ENCRYPTED_PATTERN
      • encryptedPattern

        protected Pattern encryptedPattern
      • textEncryptor

        protected org.craftercms.commons.crypto.TextEncryptor textEncryptor
    • Constructor Detail

      • EncryptionUpgradeOperation

        public EncryptionUpgradeOperation​(org.craftercms.commons.crypto.TextEncryptor textEncryptor)
    • Method Detail

      • doExecute

        protected void doExecute​(org.craftercms.commons.upgrade.impl.UpgradeContext<Target> context)
                          throws Exception
        Specified by:
        doExecute in class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
        Throws:
        Exception