
net.osgiliath.feature.itest.security.conf.SecurityProviderManagerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of net.osgiliath.feature.itest.security Show documentation
Show all versions of net.osgiliath.feature.itest.security Show documentation
Security integration tests for Osgiliath
The newest version!
package net.osgiliath.feature.itest.security.conf;
import java.util.ArrayList;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.ProviderManager;
@ApplicationScoped
public class SecurityProviderManagerProvider {
@Inject
private transient AuthenticationProvider securityService;
@Produces
public AuthenticationManager createProviderManager() {
List providers = new ArrayList<>();
providers.add(securityService);
ProviderManager ret = new ProviderManager(providers);
return ret;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy