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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor for JEESessionStore.protectedJEESessionStore(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) booleandestroySession(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) booleanrenewSession(org.pac4j.core.context.WebContext context) voidMethods 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- aHttpSessionobject
-
-
Method Details
-
getNativeSession
protected Optional<jakarta.servlet.http.HttpSession> getNativeSession(org.pac4j.core.context.WebContext context, boolean createSession) getNativeSession.
- Parameters:
context- aWebContextobjectcreateSession- a boolean- Returns:
- a
Optionalobject
-
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)
-