Class OAuthClientProviderEncryptionConfiguration.MigrationLiquibaseConfiguration
- java.lang.Object
-
- org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.LiquibaseConfiguration
-
- com.broadleafcommerce.auth.client.provider.jpa.autoconfigure.OAuthClientProviderEncryptionConfiguration.MigrationLiquibaseConfiguration
-
- Enclosing class:
- OAuthClientProviderEncryptionConfiguration
@Configuration(proxyBeanMethods=false) @ConditionalOnMissingBean(liquibase.integration.spring.SpringLiquibase.class) @EnableConfigurationProperties({org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.class,org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties.class}) public static class OAuthClientProviderEncryptionConfiguration.MigrationLiquibaseConfiguration extends org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.LiquibaseConfiguration
Override of the defaultLiquibaseAutoConfiguration.LiquibaseConfiguration
to autowire the authClientPersistenceKey bean and set it toEncryptionMigrationTask.setSecretKey(javax.crypto.SecretKey)
. This can be disabled by setting the property "broadleaf.auth.client.provider.encryption.migrate" to false.- Author:
- Cade Rea (cade-rea)
-
-
Constructor Summary
Constructors Constructor Description MigrationLiquibaseConfiguration(org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties properties, SecretKey authClientPersistenceKey)
Autowire the authClientPersistenceKey and set it on theEncryptionMigrationTask
.
-
-
-
Constructor Detail
-
MigrationLiquibaseConfiguration
public MigrationLiquibaseConfiguration(org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties properties, SecretKey authClientPersistenceKey)
Autowire the authClientPersistenceKey and set it on theEncryptionMigrationTask
.- Parameters:
properties
- TheLiquibaseProperties
to configure Liquibase.authClientPersistenceKey
- The secret key used byEncryptedFieldConverter
to encrypt and decrypt entity fields.
-
-