public class DefaultSessionActivator extends Object implements SessionActivator
Modifier | Constructor and Description |
---|---|
protected |
DefaultSessionActivator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
activateSession(InternalSession session,
LoginState loginState) |
boolean |
activateSession(LoginState loginState,
SessionService sessionService,
InternalSession authSession,
Subject subject)
Activates the given session after successful authentication, returning the an indication of whether activation
was successful.
|
protected Subject |
addSSOTokenPrincipal(Subject subject,
SessionID sid) |
protected InternalSession |
createSession(SessionService sessionService,
LoginState loginState) |
protected void |
putAllPropertiesFromAuthSession(InternalSession authSession,
InternalSession sessionToUpdate) |
protected boolean |
updateSessions(InternalSession newSession,
LoginState loginState,
InternalSession sessionToActivate,
InternalSession authSession,
SessionService sessionService,
Subject subject)
newSession and sessionToActivate may be the same session -- e.g. in the default case for normal or stateless
tokens.
|
protected static final Debug DEBUG
public boolean activateSession(LoginState loginState, SessionService sessionService, InternalSession authSession, Subject subject) throws AuthException
SessionActivator
LoginState
should be updated to reflect the activated session.activateSession
in interface SessionActivator
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.AuthException
- if an error occurs that prevents session activation.protected boolean updateSessions(InternalSession newSession, LoginState loginState, InternalSession sessionToActivate, InternalSession authSession, SessionService sessionService, Subject subject) throws AuthException
AuthException
protected void putAllPropertiesFromAuthSession(InternalSession authSession, InternalSession sessionToUpdate)
protected InternalSession createSession(SessionService sessionService, LoginState loginState)
protected boolean activateSession(InternalSession session, LoginState loginState) throws SessionException
SessionException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.