public final class LoginContextFactory extends Object
This class is not intended to be instantiated or extended by clients.
Constructor and Description |
---|
LoginContextFactory() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
public static ILoginContext createContext(String configName, URL configFile)
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)
.
configName
- the name of login configuration to useconfigFile
- points to the standard JAAS configuration filepublic static ILoginContext createContext(String configName, URL configFile, CallbackHandler handler)
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)
.
configName
- the name of login configuration to useconfigFile
- points to the standard JAAS configuration filehandler
- optional callback handler, might be null
public static ILoginContext createContext(String configName)
configName
- the name of login configuration to use
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.