@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    @ConditionalOnMissingBean(name = "restPasswordChangeService")
    public PasswordManagementService passwordChangeService(
        @Qualifier("passwordChangeServiceRestTemplate")
        final RestTemplate passwordChangeServiceRestTemplate,
        final CasConfigurationProperties casProperties,
        @Qualifier("passwordManagementCipherExecutor")
        final CipherExecutor passwordManagementCipherExecutor,
        @Qualifier(PasswordHistoryService.BEAN_NAME)
        final PasswordHistoryService passwordHistoryService) {
        return new RestPasswordManagementService(passwordManagementCipherExecutor,
            casProperties, passwordChangeServiceRestTemplate, passwordHistoryService);
    }
This is {@link CasRestPasswordManagementAutoConfiguration}.

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