Class ForceAuthSessionActivator
- java.lang.Object
-
- com.sun.identity.authentication.service.DefaultSessionActivator
-
- org.forgerock.openam.authentication.service.activators.ForceAuthSessionActivator
-
- All Implemented Interfaces:
SessionActivator
public final class ForceAuthSessionActivator extends DefaultSessionActivator
The force auth session activator: creates a new session, sets that as the current session (setSessionProperties in loginState then replaces that with the old session), copies in properties from the auth session, deletes the auth session and returns.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.authentication.service.DefaultSessionActivator
DEBUG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactivateSession(LoginState loginState, SessionService sessionService, InternalSession authSession, Subject subject)Activates the given session after successful authentication, returning the an indication of whether activation was successful.static ForceAuthSessionActivatorgetInstance()-
Methods inherited from class com.sun.identity.authentication.service.DefaultSessionActivator
activateSession, addSSOTokenPrincipal, createSession, putAllPropertiesFromAuthSession, updateSessions
-
-
-
-
Method Detail
-
activateSession
public boolean activateSession(LoginState loginState, SessionService sessionService, InternalSession authSession, Subject subject) throws AuthException
Description copied from interface:SessionActivatorActivates the given session after successful authentication, returning the an indication of whether activation was successful. TheLoginStateshould be updated to reflect the activated session.- Specified by:
activateSessionin interfaceSessionActivator- Overrides:
activateSessionin classDefaultSessionActivator- Parameters:
loginState- the login state used for authentication. May be updated by the activator.sessionService- the session service.authSession- the session used for authentication.subject- the authenticated subject.- Returns:
- whether activation was successful.
- Throws:
AuthException- if an error occurs that prevents session activation.
-
getInstance
public static ForceAuthSessionActivator getInstance()
-
-