Package org.pac4j.jee.context.session
Class JEESessionStore
java.lang.Object
org.pac4j.jee.context.session.JEESessionStore
- All Implemented Interfaces:
org.pac4j.core.context.session.SessionStore
Store data in the JEE web session.
- Since:
- 1.8.1
- Author:
- Jerome Leleu
-
Field Summary
Modifier and TypeFieldDescriptionprotected jakarta.servlet.http.HttpSession
static final JEESessionStore
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
JEESessionStore
(jakarta.servlet.http.HttpSession httpSession) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.pac4j.core.context.session.SessionStore>
buildFromTrackableSession
(org.pac4j.core.context.WebContext context, Object trackableSession) boolean
destroySession
(org.pac4j.core.context.WebContext context) protected Optional<jakarta.servlet.http.HttpSession>
getNativeSession
(org.pac4j.core.context.WebContext context, boolean createSession) getSessionId
(org.pac4j.core.context.WebContext context, boolean createSession) getTrackableSession
(org.pac4j.core.context.WebContext context) boolean
renewSession
(org.pac4j.core.context.WebContext context) void
-
Field Details
-
INSTANCE
-
httpSession
protected jakarta.servlet.http.HttpSession httpSession
-
-
Constructor Details
-
JEESessionStore
protected JEESessionStore() -
JEESessionStore
protected JEESessionStore(jakarta.servlet.http.HttpSession httpSession)
-
-
Method Details
-
getNativeSession
protected Optional<jakarta.servlet.http.HttpSession> getNativeSession(org.pac4j.core.context.WebContext context, boolean createSession) -
getSessionId
public Optional<String> getSessionId(org.pac4j.core.context.WebContext context, boolean createSession) - Specified by:
getSessionId
in interfaceorg.pac4j.core.context.session.SessionStore
-
get
- Specified by:
get
in interfaceorg.pac4j.core.context.session.SessionStore
-
set
- Specified by:
set
in interfaceorg.pac4j.core.context.session.SessionStore
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext context) - Specified by:
destroySession
in interfaceorg.pac4j.core.context.session.SessionStore
-
getTrackableSession
- Specified by:
getTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore
-
buildFromTrackableSession
public Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession(org.pac4j.core.context.WebContext context, Object trackableSession) - Specified by:
buildFromTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context) - Specified by:
renewSession
in interfaceorg.pac4j.core.context.session.SessionStore
-