Interface SessionActivator
-
- All Known Implementing Classes:
DefaultSessionActivator,ForceAuthSessionActivator
public interface SessionActivatorEncapsulates 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 Summary
All Methods Instance Methods Abstract 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.
-
-
-
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. TheLoginStateshould 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.
-
-