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 TypeMethodDescriptionvoidaccept(RoutingContext item) addAuthorizationProvider(AuthorizationProvider authorizationProvider) static AuthorizationHandlercreate(Authorization authorization) booleanio.vertx.ext.web.handler.AuthorizationHandlervoidhandle(RoutingContext arg0) inthashCode()static AuthorizationHandlernewInstance(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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein 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:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-