public class KnoxSessionStore<C extends org.pac4j.core.context.WebContext> extends Object implements org.pac4j.core.context.session.SessionStore<C>
| Modifier and Type | Field and Description |
|---|---|
static String |
PAC4J_PASSWORD |
static String |
PAC4J_SESSION_PREFIX |
| Constructor and Description |
|---|
KnoxSessionStore(CryptoService cryptoService,
String clusterName,
String domainSuffix) |
KnoxSessionStore(CryptoService cryptoService,
String clusterName,
String domainSuffix,
Map<String,String> sessionStoreConfigs) |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.pac4j.core.context.session.SessionStore<C>> |
buildFromTrackableSession(org.pac4j.core.context.WebContext arg0,
Object arg1) |
boolean |
destroySession(org.pac4j.core.context.WebContext arg0) |
Optional<Object> |
get(org.pac4j.core.context.WebContext context,
String key) |
String |
getOrCreateSessionId(org.pac4j.core.context.WebContext context) |
Optional |
getTrackableSession(org.pac4j.core.context.WebContext arg0) |
boolean |
renewSession(org.pac4j.core.context.WebContext context) |
void |
set(org.pac4j.core.context.WebContext context,
String key,
Object value) |
public static final String PAC4J_PASSWORD
public static final String PAC4J_SESSION_PREFIX
public KnoxSessionStore(CryptoService cryptoService, String clusterName, String domainSuffix)
public String getOrCreateSessionId(org.pac4j.core.context.WebContext context)
getOrCreateSessionId in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public Optional<Object> get(org.pac4j.core.context.WebContext context, String key)
get in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public void set(org.pac4j.core.context.WebContext context,
String key,
Object value)
set in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public Optional<org.pac4j.core.context.session.SessionStore<C>> buildFromTrackableSession(org.pac4j.core.context.WebContext arg0, Object arg1)
buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public boolean destroySession(org.pac4j.core.context.WebContext arg0)
destroySession in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public Optional getTrackableSession(org.pac4j.core.context.WebContext arg0)
getTrackableSession in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>public boolean renewSession(org.pac4j.core.context.WebContext context)
renewSession in interface org.pac4j.core.context.session.SessionStore<C extends org.pac4j.core.context.WebContext>Copyright © 2023 The Apache Software Foundation. All rights reserved.