use of org.glassfish.security.services.common.SecurityScope in project Payara by payara.
the class AuthenticationServiceFactory method provide.
@SecurityScope
public AuthenticationService provide() {
String currentState = manager.getCurrent();
// Get Service Instance
AuthenticationService atnService = AccessController.doPrivileged(new PrivilegedLookup<AuthenticationService>(serviceLocator, AuthenticationService.class));
// Get Service Configuration
org.glassfish.security.services.config.AuthenticationService atnConfiguration = serviceLocator.getService(org.glassfish.security.services.config.AuthenticationService.class, currentState);
// Initialize Service
atnService.initialize(atnConfiguration);
return atnService;
}
Aggregations