Class ServiceFactory
- java.lang.Object
-
- org.glassfish.security.services.impl.ServiceFactory
-
- Direct Known Subclasses:
AuthenticationServiceFactory
public class ServiceFactory extends Object
The base security service factory class.
-
-
Constructor Summary
Constructors Constructor Description ServiceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends SecurityConfiguration>
TgetSecurityServiceConfiguration(Domain domain, Class<T> type)
Get the security service configuration for the specified service type.
-
-
-
Method Detail
-
getSecurityServiceConfiguration
public static <T extends SecurityConfiguration> T getSecurityServiceConfiguration(Domain domain, Class<T> type)
Get the security service configuration for the specified service type. Attempt to obtain the service configuration marked as default otherwise use the first configured service instance.- Parameters:
domain
- The current Domain configuration objecttype
- The type of the security service configuration- Returns:
- null when no service configurations are found
-
-