Package org.apereo.cas.pac4j
Class DistributedJEESessionStore
- java.lang.Object
-
- org.apereo.cas.pac4j.DistributedJEESessionStore
-
- All Implemented Interfaces:
org.pac4j.core.context.session.SessionStore
@Transactional(transactionManager="ticketTransactionManager") public class DistributedJEESessionStore extends java.lang.Object implements org.pac4j.core.context.session.SessionStoreThis isDistributedJEESessionStore.- Since:
- 6.1.0
-
-
Constructor Summary
Constructors Constructor Description DistributedJEESessionStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.pac4j.core.context.session.SessionStore>buildFromTrackableSession(org.pac4j.core.context.WebContext context, java.lang.Object trackableSession)booleandestroySession(org.pac4j.core.context.WebContext webContext)protected java.lang.StringfetchSessionIdFromContext(org.pac4j.core.context.WebContext webContext)Fetch session id from context.java.util.Optionalget(org.pac4j.core.context.WebContext context, java.lang.String key)java.util.Optional<java.lang.String>getSessionId(org.pac4j.core.context.WebContext webContext, boolean create)java.util.OptionalgetTrackableSession(org.pac4j.core.context.WebContext context)booleanrenewSession(org.pac4j.core.context.WebContext context)voidset(org.pac4j.core.context.WebContext context, java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
getSessionId
public java.util.Optional<java.lang.String> getSessionId(org.pac4j.core.context.WebContext webContext, boolean create)- Specified by:
getSessionIdin interfaceorg.pac4j.core.context.session.SessionStore
-
get
public java.util.Optional get(org.pac4j.core.context.WebContext context, java.lang.String key)- Specified by:
getin interfaceorg.pac4j.core.context.session.SessionStore
-
set
public void set(org.pac4j.core.context.WebContext context, java.lang.String key, java.lang.Object value)- Specified by:
setin interfaceorg.pac4j.core.context.session.SessionStore
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext webContext)
- Specified by:
destroySessionin interfaceorg.pac4j.core.context.session.SessionStore
-
getTrackableSession
public java.util.Optional getTrackableSession(org.pac4j.core.context.WebContext context)
- Specified by:
getTrackableSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
buildFromTrackableSession
public java.util.Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession(org.pac4j.core.context.WebContext context, java.lang.Object trackableSession)- Specified by:
buildFromTrackableSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context)
- Specified by:
renewSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
fetchSessionIdFromContext
protected java.lang.String fetchSessionIdFromContext(org.pac4j.core.context.WebContext webContext)
Fetch session id from context.- Parameters:
webContext- the web context- Returns:
- the string
-
-