Package io.vertx.mutiny.ext.web.handler
Class AuthorizationHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.AuthorizationHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,Consumer<RoutingContext>
public class AuthorizationHandler extends Object implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
Base interface for authorization handlers that provide authorization support.AuthorizationHandlerImpl usually requires a
NOTE: This class has been automatically generated from theAuthenticationHandler
to be on the routing chain before it or a custom handler that has previously set aUser
in theRoutingContext
original
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<AuthorizationHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description AuthorizationHandler(io.vertx.ext.web.handler.AuthorizationHandler delegate)
AuthorizationHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(RoutingContext item)
AuthorizationHandler
addAuthorizationProvider(AuthorizationProvider authorizationProvider)
static AuthorizationHandler
create(Authorization authorization)
boolean
equals(Object o)
io.vertx.ext.web.handler.AuthorizationHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static AuthorizationHandler
newInstance(io.vertx.ext.web.handler.AuthorizationHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<AuthorizationHandler> __TYPE_ARG
-
-
Constructor Detail
-
AuthorizationHandler
public AuthorizationHandler(io.vertx.ext.web.handler.AuthorizationHandler delegate)
-
AuthorizationHandler
public AuthorizationHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.AuthorizationHandler getDelegate()
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
-
create
public static AuthorizationHandler create(Authorization authorization)
- Parameters:
authorization
- the authorization to attest.- Returns:
- fluent self.
-
addAuthorizationProvider
public AuthorizationHandler addAuthorizationProvider(AuthorizationProvider authorizationProvider)
- Parameters:
authorizationProvider
- a provider.- Returns:
- fluent self.
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static AuthorizationHandler newInstance(io.vertx.ext.web.handler.AuthorizationHandler arg)
-
-