Package org.pac4j.vertx.context.session
Class VertxSessionStore
- java.lang.Object
-
- org.pac4j.vertx.context.session.VertxSessionStore
-
- All Implemented Interfaces:
org.pac4j.core.context.session.SessionStore<VertxWebContext>
public class VertxSessionStore extends java.lang.Object implements org.pac4j.core.context.session.SessionStore<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)
VertxSessionStore(io.vertx.ext.web.sstore.SessionStore sessionStore, io.vertx.ext.web.Session providedSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.pac4j.core.context.session.SessionStore<VertxWebContext>>
buildFromTrackableSession(VertxWebContext context, java.lang.Object trackableSession)
boolean
destroySession(VertxWebContext context)
java.util.Optional<java.lang.Object>
get(VertxWebContext context, java.lang.String key)
java.lang.String
getOrCreateSessionId(VertxWebContext context)
java.util.Optional<java.lang.Object>
getTrackableSession(VertxWebContext context)
protected io.vertx.ext.web.Session
getVertxSession(VertxWebContext context)
boolean
renewSession(VertxWebContext context)
void
set(VertxWebContext context, java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
getVertxSession
protected io.vertx.ext.web.Session getVertxSession(VertxWebContext context)
-
getOrCreateSessionId
public java.lang.String getOrCreateSessionId(VertxWebContext context)
- Specified by:
getOrCreateSessionId
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
get
public java.util.Optional<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.util.Optional<java.lang.Object> getTrackableSession(VertxWebContext context)
- Specified by:
getTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore<VertxWebContext>
-
buildFromTrackableSession
public java.util.Optional<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>
-
-