Class ServiceFactory
java.lang.Object
org.glassfish.security.services.impl.ServiceFactory
- Direct Known Subclasses:
AuthenticationServiceFactory
The base security service factory class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends SecurityConfiguration>
TgetSecurityServiceConfiguration
(com.sun.enterprise.config.serverbeans.Domain domain, Class<T> type) Get the security service configuration for the specified service type.
-
Constructor Details
-
ServiceFactory
public ServiceFactory()
-
-
Method Details
-
getSecurityServiceConfiguration
public static <T extends SecurityConfiguration> T getSecurityServiceConfiguration(com.sun.enterprise.config.serverbeans.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
-