Class 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 default LiquibaseAutoConfiguration.LiquibaseConfiguration to autowire the authClientPersistenceKey bean and set it to EncryptionMigrationTask.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 Detail

      • MigrationLiquibaseConfiguration

        public MigrationLiquibaseConfiguration​(org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties properties,
                                               SecretKey authClientPersistenceKey)
        Autowire the authClientPersistenceKey and set it on the EncryptionMigrationTask.
        Parameters:
        properties - The LiquibaseProperties to configure Liquibase.
        authClientPersistenceKey - The secret key used by EncryptedFieldConverter to encrypt and decrypt entity fields.