Class LoginContextFactory
java.lang.Object
org.eclipse.equinox.security.auth.LoginContextFactory
The LoginContextFactory class is the entry point for the login support for
the platform. Use it to create login contexts.
This class is not intended to be instantiated or extended by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILoginContext
createContext
(String configName) Creates application-specific security context.static ILoginContext
createContext
(String configName, URL configFile) Creates application-specific security context.static ILoginContext
createContext
(String configName, URL configFile, CallbackHandler handler) Creates application-specific security context.
-
Constructor Details
-
LoginContextFactory
public LoginContextFactory()
-
-
Method Details
-
createContext
Creates application-specific security context. The security context then can be used to perform login, logout, and obtain Subject information.Due to the way default Java Configuration is initialized, this context should be created first. If standard JAAS files are used with the standard configuration, the initialization will fail unless this context created first, prior to any calls to
createContext(String)
.- Parameters:
configName
- the name of login configuration to useconfigFile
- points to the standard JAAS configuration file- Returns:
- new security context
-
createContext
public static ILoginContext createContext(String configName, URL configFile, CallbackHandler handler) Creates application-specific security context. The security context then can be used to perform login, logout, and obtain Subject information.Due to the way default Java Configuration is initialized, this context should be created first. If standard JAAS files are used with the standard configuration, the initialization will fail unless this context created first, prior to any calls to
createContext(String)
.- Parameters:
configName
- the name of login configuration to useconfigFile
- points to the standard JAAS configuration filehandler
- optional callback handler, might benull
- Returns:
- new security context
-
createContext
Creates application-specific security context. The security context then can be used to perform login, logout, and obtain Subject information.- Parameters:
configName
- the name of login configuration to use- Returns:
- new security context
-