Interface SessionActivator

  • All Known Implementing Classes:
    DefaultSessionActivator, ForceAuthSessionActivator

    public interface SessionActivator
    Encapsulates logic for activating a session after successful authentication. Implements a strategy design pattern to separate the details of different session activation strategies (e.g., session upgrade).
    • Method Detail

      • activateSession

        boolean activateSession​(LoginState loginState,
                                SessionService sessionService,
                                InternalSession authSession,
                                Subject subject)
                         throws AuthException
        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.
        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.