Class LoginContextFactory
- java.lang.Object
-
- org.forgerock.openam.authentication.service.LoginContextFactory
-
public class LoginContextFactory extends Object
This Factory makes Login Context objects based on whether authentication is happening in pure JAAS modules and whether there is a subject available.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginContextcreateLoginContext(AMLoginContext context, Subject subject, String configName, boolean isPureJAAS, Configuration configuration)Creates an appropriate version of a login context object based on the provided parametersstatic LoginContextFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static LoginContextFactory getInstance()
-
createLoginContext
public LoginContext createLoginContext(AMLoginContext context, Subject subject, String configName, boolean isPureJAAS, Configuration configuration) throws LoginException
Creates an appropriate version of a login context object based on the provided parameters- Parameters:
context- the AMLoginContext that is requesting a login contextsubject- the subject that is attempting to log in - may be nullconfigName- the config name for the JAAS object, must not be null.isPureJAAS- true if there are only pure JAASconfiguration- the authentication configuration- Returns:
- a created login context
- Throws:
LoginException- if the login context could not be created
-
-