@Singleton public class PlayCacheSessionStore extends Object implements PlaySessionStore
PlayCacheStore which uses the Play Cache, only an identifier is saved into the Play session.| Constructor and Description |
|---|
PlayCacheSessionStore(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider) |
PlayCacheSessionStore(play.cache.SyncCacheApi cache) |
| Modifier and Type | Method and Description |
|---|---|
org.pac4j.core.context.session.SessionStore<PlayWebContext> |
buildFromTrackableSession(PlayWebContext context,
Object trackableSession) |
boolean |
destroySession(PlayWebContext context) |
Object |
get(PlayWebContext context,
String key) |
String |
getOrCreateSessionId(PlayWebContext context) |
String |
getPrefix() |
PlayCacheStore<String,Map<String,Object>> |
getStore() |
int |
getTimeout() |
Object |
getTrackableSession(PlayWebContext context) |
boolean |
renewSession(PlayWebContext context) |
void |
set(PlayWebContext context,
String key,
Object value) |
protected void |
setDefaultTimeout() |
void |
setPrefix(String prefix) |
void |
setTimeout(int timeout) |
String |
toString() |
@Inject public PlayCacheSessionStore(play.cache.SyncCacheApi cache)
public PlayCacheSessionStore(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
public String getOrCreateSessionId(PlayWebContext context)
getOrCreateSessionId in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public Object get(PlayWebContext context, String key)
get in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public void set(PlayWebContext context, String key, Object value)
set in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public boolean destroySession(PlayWebContext context)
destroySession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public Object getTrackableSession(PlayWebContext context)
getTrackableSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public org.pac4j.core.context.session.SessionStore<PlayWebContext> buildFromTrackableSession(PlayWebContext context, Object trackableSession)
buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public boolean renewSession(PlayWebContext context)
renewSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>public String getPrefix()
public void setPrefix(String prefix)
public int getTimeout()
public void setTimeout(int timeout)
public PlayCacheStore<String,Map<String,Object>> getStore()
protected void setDefaultTimeout()
Copyright © 2019. All rights reserved.