Package org.pac4j.vertx.context.session
Class VertxSessionStore
- java.lang.Object
-
- org.pac4j.vertx.context.session.VertxSessionStore
-
- All Implemented Interfaces:
ExtendedSessionStore<VertxWebContext>
,org.pac4j.core.context.session.SessionStore<VertxWebContext>
public class VertxSessionStore extends java.lang.Object implements ExtendedSessionStore<VertxWebContext>
Vert.x implementation of pac4j SessionStore interface to access the existing vertx-web session.
-
-
Constructor Summary
Constructors Constructor Description VertxSessionStore(io.vertx.ext.web.sstore.SessionStore sessionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.core.context.session.SessionStore<VertxWebContext>
buildFromTrackableSession(VertxWebContext context, java.lang.Object trackableSession)
boolean
destroySession(VertxWebContext context)
java.lang.Object
get(VertxWebContext context, java.lang.String key)
java.lang.String
getOrCreateSessionId(VertxWebContext context)
Session
getSession(java.lang.String sessionId)
java.lang.Object
getTrackableSession(VertxWebContext context)
boolean
renewSession(VertxWebContext context)
void
set(VertxWebContext context, java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
getOrCreateSessionId
public java.lang.String getOrCreateSessionId(VertxWebContext context)
- Specified by:
getOrCreateSessionId
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
get
public java.lang.Object get(VertxWebContext context, java.lang.String key)
- Specified by:
get
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
set
public void set(VertxWebContext context, java.lang.String key, java.lang.Object value)
- Specified by:
set
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
destroySession
public boolean destroySession(VertxWebContext context)
- Specified by:
destroySession
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
getTrackableSession
public java.lang.Object getTrackableSession(VertxWebContext context)
- Specified by:
getTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
buildFromTrackableSession
public org.pac4j.core.context.session.SessionStore<VertxWebContext> buildFromTrackableSession(VertxWebContext context, java.lang.Object trackableSession)
- Specified by:
buildFromTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
renewSession
public boolean renewSession(VertxWebContext context)
- Specified by:
renewSession
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
getSession
public Session getSession(java.lang.String sessionId)
- Specified by:
getSession
in interfaceExtendedSessionStore<VertxWebContext>
-
-