Package org.pac4j.vertx.handler.impl
Class SecurityHandler
- java.lang.Object
-
- io.vertx.ext.web.handler.impl.AuthHandlerImpl
-
- org.pac4j.vertx.handler.impl.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
-
Constructor Summary
Constructors Constructor Description SecurityHandler(io.vertx.core.Vertx vertx, org.pac4j.core.context.session.SessionStore<VertxWebContext> sessionStore, org.pac4j.core.config.Config config, Pac4jAuthProvider authProvider, SecurityHandlerOptions options)
-
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)
-
-
-
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
-
-
Constructor Detail
-
SecurityHandler
public SecurityHandler(io.vertx.core.Vertx vertx, org.pac4j.core.context.session.SessionStore<VertxWebContext> sessionStore, org.pac4j.core.config.Config config, Pac4jAuthProvider authProvider, SecurityHandlerOptions options)
-
-
Method Detail
-
handle
public void handle(io.vertx.ext.web.RoutingContext routingContext)
- Specified by:
handle
in interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
- Overrides:
handle
in classio.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)
-
-