Package org.pac4j.jee.context.session
Class JEESessionStore
java.lang.Object
org.pac4j.core.context.session.PrefixedSessionStore
org.pac4j.jee.context.session.JEESessionStore
- All Implemented Interfaces:
org.pac4j.core.context.session.SessionStore
public class JEESessionStore
extends org.pac4j.core.context.session.PrefixedSessionStore
Store data in the JEE web session.
- Since:
- 1.8.1
- Author:
- Jerome Leleu
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionConstructor for JEESessionStore.protected
JEESessionStore
(jakarta.servlet.http.HttpSession httpSession) Constructor for JEESessionStore. -
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) getNativeSession.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
Methods inherited from class org.pac4j.core.context.session.PrefixedSessionStore
computePrefixedKey, getPrefix, setPrefix
-
Field Details
-
httpSession
protected jakarta.servlet.http.HttpSession httpSession
-
-
Constructor Details
-
JEESessionStore
public JEESessionStore()Constructor for JEESessionStore.
-
JEESessionStore
protected JEESessionStore(jakarta.servlet.http.HttpSession httpSession) Constructor for JEESessionStore.
- Parameters:
httpSession
- aHttpSession
object
-
-
Method Details
-
getNativeSession
protected Optional<jakarta.servlet.http.HttpSession> getNativeSession(org.pac4j.core.context.WebContext context, boolean createSession) getNativeSession.
- Parameters:
context
- aWebContext
objectcreateSession
- a boolean- Returns:
- a
Optional
object
-
getSessionId
-
get
-
set
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext context) -
getTrackableSession
-
buildFromTrackableSession
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context)
-