Class LogoutHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>

    public class LogoutHandler
    extends java.lang.Object
    implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    Implementation of a handler for handling pac4j user logout
    Since:
    2.0.0
    Author:
    Jeremy Prime
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.pac4j.core.config.Config config  
      protected java.lang.String defaultUrl  
      protected java.lang.String logoutUrlPattern  
    • Constructor Summary

      Constructors 
      Constructor Description
      LogoutHandler​(io.vertx.core.Vertx vertx, org.pac4j.core.context.session.SessionStore<VertxWebContext> sessionStore, LogoutHandlerOptions options, org.pac4j.core.config.Config config)
      Construct based on the option values provided
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(io.vertx.ext.web.RoutingContext routingContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defaultUrl

        protected final java.lang.String defaultUrl
      • logoutUrlPattern

        protected final java.lang.String logoutUrlPattern
      • config

        protected final org.pac4j.core.config.Config config
    • Constructor Detail

      • LogoutHandler

        public LogoutHandler​(io.vertx.core.Vertx vertx,
                             org.pac4j.core.context.session.SessionStore<VertxWebContext> sessionStore,
                             LogoutHandlerOptions options,
                             org.pac4j.core.config.Config config)
        Construct based on the option values provided
        Parameters:
        vertx - the vertx API
        sessionStore - the session store
        options - - the options to configure this handler
        config - the pac4j configuration
    • Method Detail

      • handle

        public void handle​(io.vertx.ext.web.RoutingContext routingContext)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>