@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @Bean
        public PasswordHistoryService passwordHistoryService(final ConfigurableApplicationContext applicationContext) {
            return BeanSupplier.of(PasswordHistoryService.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(JdbcPasswordHistoryService::new)
                .otherwise(AmnesiacPasswordHistoryService::new)
                .get();
        }
This is {@link JdbcPasswordHistoryManagementConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm-jdbc/src/main/java/org/apereo/cas/config/JdbcPasswordHistoryManagementConfiguration.java