public class EncryptedFieldService extends Object
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 application.properties for the
migration.
encryption.algorithm.old the old algorithm, empty if not set previously
encryption.password.old the old password, empty if not set previously
encryption.algorithm the new algorithm, empty if want to use default
encryption.password the new password (required)
| Constructor and Description |
|---|
EncryptedFieldService() |
| Modifier and Type | Method and Description |
|---|---|
void |
migrate() |
void |
migrate(Class<?> model,
String... fields) |