Class DefaultSessionManager
java.lang.Object
org.nuxeo.ecm.platform.ui.web.auth.plugins.DefaultSessionManager
- All Implemented Interfaces:
NuxeoAuthenticationSessionManager
- Direct Known Subclasses:
WebEngineSessionManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBypassRequest
(javax.servlet.ServletRequest request) Returns true if request does not require to be authenticated.boolean
invalidateSession
(javax.servlet.ServletRequest request) May invalidates the session.boolean
needResetLogin
(javax.servlet.ServletRequest req) Checks whether or not this request was made to perform login.void
onAfterSessionReinit
(javax.servlet.ServletRequest request) CallBack after SessionReinit.void
onAuthenticatedSessionCreated
(javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session, CachableUserIdentificationInfo cachableUserInfo) CallBack for session creationvoid
onBeforeSessionReinit
(javax.servlet.ServletRequest request) CallBack before SessionReinit.
-
Constructor Details
-
DefaultSessionManager
public DefaultSessionManager()
-
-
Method Details
-
canBypassRequest
public boolean canBypassRequest(javax.servlet.ServletRequest request) Description copied from interface:NuxeoAuthenticationSessionManager
Returns true if request does not require to be authenticated.- Specified by:
canBypassRequest
in interfaceNuxeoAuthenticationSessionManager
-
invalidateSession
public boolean invalidateSession(javax.servlet.ServletRequest request) Description copied from interface:NuxeoAuthenticationSessionManager
May invalidates the session. Return true is the session was invalidated.- Specified by:
invalidateSession
in interfaceNuxeoAuthenticationSessionManager
-
onAfterSessionReinit
public void onAfterSessionReinit(javax.servlet.ServletRequest request) Description copied from interface:NuxeoAuthenticationSessionManager
CallBack after SessionReinit.- Specified by:
onAfterSessionReinit
in interfaceNuxeoAuthenticationSessionManager
-
onAuthenticatedSessionCreated
public void onAuthenticatedSessionCreated(javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session, CachableUserIdentificationInfo cachableUserInfo) Description copied from interface:NuxeoAuthenticationSessionManager
CallBack for session creation- Specified by:
onAuthenticatedSessionCreated
in interfaceNuxeoAuthenticationSessionManager
-
onBeforeSessionReinit
public void onBeforeSessionReinit(javax.servlet.ServletRequest request) Description copied from interface:NuxeoAuthenticationSessionManager
CallBack before SessionReinit.- Specified by:
onBeforeSessionReinit
in interfaceNuxeoAuthenticationSessionManager
-
needResetLogin
public boolean needResetLogin(javax.servlet.ServletRequest req) Description copied from interface:NuxeoAuthenticationSessionManager
Checks whether or not this request was made to perform login. This is tested by the authentication filter to decide if a switch user is needed.- Specified by:
needResetLogin
in interfaceNuxeoAuthenticationSessionManager
-