public class ShiroSessionStore extends Object implements org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>
| Modifier and Type | Field and Description |
|---|---|
static ShiroSessionStore |
INSTANCE |
| Constructor and Description |
|---|
ShiroSessionStore() |
| Modifier and Type | Method and Description |
|---|---|
org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext> |
buildFromTrackableSession(org.pac4j.core.context.J2EContext context,
Object trackableSession) |
boolean |
destroySession(org.pac4j.core.context.J2EContext context) |
Object |
get(org.pac4j.core.context.J2EContext context,
String key) |
String |
getOrCreateSessionId(org.pac4j.core.context.J2EContext context) |
protected org.apache.shiro.session.Session |
getSession(boolean createSession)
Get the Shiro session (do not create it if it does not exist).
|
Object |
getTrackableSession(org.pac4j.core.context.J2EContext context) |
boolean |
renewSession(org.pac4j.core.context.J2EContext context) |
void |
set(org.pac4j.core.context.J2EContext context,
String key,
Object value) |
public static final ShiroSessionStore INSTANCE
protected org.apache.shiro.session.Session getSession(boolean createSession)
createSession - create a session if requestedpublic String getOrCreateSessionId(org.pac4j.core.context.J2EContext context)
getOrCreateSessionId in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public Object get(org.pac4j.core.context.J2EContext context, String key)
get in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public void set(org.pac4j.core.context.J2EContext context,
String key,
Object value)
set in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public boolean destroySession(org.pac4j.core.context.J2EContext context)
destroySession in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public Object getTrackableSession(org.pac4j.core.context.J2EContext context)
getTrackableSession in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext> buildFromTrackableSession(org.pac4j.core.context.J2EContext context,
Object trackableSession)
buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>public boolean renewSession(org.pac4j.core.context.J2EContext context)
renewSession in interface org.pac4j.core.context.session.SessionStore<org.pac4j.core.context.J2EContext>Copyright © 2018. All rights reserved.