Package io.vertx.mutiny.ext.web.handler
Class AuthorizationHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.AuthorizationHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,Consumer<RoutingContext>
public class AuthorizationHandler
extends Object
implements MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
Base interface for authorization handlers that provide authorization support.
AuthorizationHandlerImpl usually requires a AuthenticationHandler
to be on the routing chain before it
or a custom handler that has previously set a User
in the RoutingContext
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationHandler
(io.vertx.ext.web.handler.AuthorizationHandler delegate) AuthorizationHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) addAuthorizationProvider
(AuthorizationProvider authorizationProvider) static AuthorizationHandler
create
(Authorization authorization) boolean
io.vertx.ext.web.handler.AuthorizationHandler
void
handle
(RoutingContext arg0) int
hashCode()
static AuthorizationHandler
newInstance
(io.vertx.ext.web.handler.AuthorizationHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
AuthorizationHandler
public AuthorizationHandler(io.vertx.ext.web.handler.AuthorizationHandler delegate) -
AuthorizationHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.AuthorizationHandler getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
-
create
- Parameters:
authorization
- the authorization to attest.- Returns:
- fluent self.
-
addAuthorizationProvider
- Parameters:
authorizationProvider
- a provider.- Returns:
- fluent self.
-
accept
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
-