Class SecurityHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>, io.vertx.ext.web.handler.AuthHandler
    Direct Known Subclasses:
    CallbackDeployingPac4jAuthHandler

    public class SecurityHandler
    extends io.vertx.ext.web.handler.impl.AuthHandlerImpl
    Since:
    2.0.0
    Author:
    Jeremy Prime
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String authorizerName  
      protected java.lang.String clientNames  
      protected org.pac4j.core.config.Config config  
      protected java.lang.String matcherName  
      protected boolean multiProfile  
      protected io.vertx.core.Vertx vertx  
      • Fields inherited from class io.vertx.ext.web.handler.impl.AuthHandlerImpl

        authorities, authProvider, realm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(io.vertx.ext.web.RoutingContext routingContext)  
      void parseCredentials​(io.vertx.ext.web.RoutingContext context, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)  
      protected org.pac4j.core.exception.TechnicalException toTechnicalException​(java.lang.Throwable t)  
      protected void unexpectedFailure​(io.vertx.ext.web.RoutingContext context, java.lang.Throwable failure)  
      • Methods inherited from class io.vertx.ext.web.handler.impl.AuthHandlerImpl

        addAuthorities, addAuthority, authenticateHeader, authorize, processException
      • Methods inherited from class java.lang.Object

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

      • config

        protected final org.pac4j.core.config.Config config
      • clientNames

        protected final java.lang.String clientNames
      • authorizerName

        protected final java.lang.String authorizerName
      • matcherName

        protected final java.lang.String matcherName
      • multiProfile

        protected final boolean multiProfile
      • vertx

        protected final io.vertx.core.Vertx vertx
    • 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>
        Overrides:
        handle in class io.vertx.ext.web.handler.impl.AuthHandlerImpl
      • unexpectedFailure

        protected void unexpectedFailure​(io.vertx.ext.web.RoutingContext context,
                                         java.lang.Throwable failure)
      • toTechnicalException

        protected final org.pac4j.core.exception.TechnicalException toTechnicalException​(java.lang.Throwable t)
      • parseCredentials

        public void parseCredentials​(io.vertx.ext.web.RoutingContext context,
                                     io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)