class CompoundAuthProvider implements AuthenticationProvider {

    public void setLoginAuthProvider(String provider) {
        if ((environment != null) && Arrays.asList(environment.getActiveProfiles()).contains("diag")) {
            LoginProvider newProvider = LoginProvider.getLoginProvider(provider);
            if (newProvider == null) {
                newProvider = defaultProvider;
            }
            this.loginProvider = newProvider;
            warnForDummyProvider(newProvider.getValue());
        } else {
            log.warn("Login Authentication provider can't be changed at runtime in the current profile.");
        }
    }

    public  CompoundAuthProvider(Map<String, AuthenticationProvider> authProvidersMap, Environment environment, @Value("${apiml.security.auth.provider:zosmf}") String defaultProviderName);

}