Class EncryptedFieldService

java.lang.Object
com.axelor.db.converters.EncryptedFieldService

public class EncryptedFieldService extends Object
The service can be used to migrate all the encrypted field values.

This utility method migrate() can be used to migrate encrypted field values if you want to change encryption algorithm or password or salt.

Following encryption settings will be read from axelor-config.properties for the migration.

  • encryption.old-algorithm the old algorithm, empty if not set previously
  • encryption.old-password the old password, empty if not set previously
and new settings:
  • encryption.algorithm the new algorithm, empty if want to use default
  • encryption.password the new password (required)
  • Constructor Details

    • EncryptedFieldService

      public EncryptedFieldService()
  • Method Details

    • migrate

      public void migrate()
    • migrate

      public void migrate(Class<?> model, String... fields)