Class 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 Detail

      • VertxSessionStore

        public VertxSessionStore​(io.vertx.ext.web.sstore.SessionStore sessionStore)
      • VertxSessionStore

        public VertxSessionStore​(io.vertx.ext.web.sstore.SessionStore sessionStore,
                                 io.vertx.ext.web.Session providedSession)
    • Method Detail

      • getVertxSession

        protected io.vertx.ext.web.Session getVertxSession​(VertxWebContext context)
      • getOrCreateSessionId

        public java.lang.String getOrCreateSessionId​(VertxWebContext context)
        Specified by:
        getOrCreateSessionId in interface org.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 interface org.pac4j.core.context.session.SessionStore<VertxWebContext>
      • set

        public void set​(VertxWebContext context,
                        java.lang.String key,
                        java.lang.Object value)
        Specified by:
        set in interface org.pac4j.core.context.session.SessionStore<VertxWebContext>
      • destroySession

        public boolean destroySession​(VertxWebContext context)
        Specified by:
        destroySession in interface org.pac4j.core.context.session.SessionStore<VertxWebContext>
      • getTrackableSession

        public java.util.Optional<java.lang.Object> getTrackableSession​(VertxWebContext context)
        Specified by:
        getTrackableSession in interface org.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 interface org.pac4j.core.context.session.SessionStore<VertxWebContext>
      • renewSession

        public boolean renewSession​(VertxWebContext context)
        Specified by:
        renewSession in interface org.pac4j.core.context.session.SessionStore<VertxWebContext>