class CompoundAuthProvider implements AuthenticationProvider {

    @Override
    public Authentication authenticate(Authentication authentication) {
        AuthenticationProvider configuredLoginAuthProvider = getConfiguredLoginAuthProvider();
        return configuredLoginAuthProvider.authenticate(authentication);
    }

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

}