Class EncryptionUpgradeOperation

java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
org.craftercms.deployer.impl.upgrade.operations.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static String
     
    protected Pattern
     
    protected org.craftercms.commons.crypto.TextEncryptor
     

    Fields inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation

    applicationContext, currentVersion, enabled, logger, nextVersion
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncryptionUpgradeOperation(org.craftercms.commons.crypto.TextEncryptor textEncryptor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doExecute(org.craftercms.commons.upgrade.impl.UpgradeContext<Target> context)
     

    Methods inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation

    doInit, execute, init, loadResource, setApplicationContext, setEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_ENCRYPTED_PATTERN

      protected static String DEFAULT_ENCRYPTED_PATTERN
    • encryptedPattern

      protected Pattern encryptedPattern
    • textEncryptor

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

    • EncryptionUpgradeOperation

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

    • 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