Class 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.
    • Method Detail

      • activateSession

        public boolean activateSession​(LoginState loginState,
                                       SessionService sessionService,
                                       InternalSession authSession,
                                       Subject subject)
                                throws AuthException
        Description copied from interface: SessionActivator
        Activates the given session after successful authentication, returning the an indication of whether activation was successful. The LoginState should be updated to reflect the activated session.
        Specified by:
        activateSession in interface SessionActivator
        Overrides:
        activateSession in class DefaultSessionActivator
        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.