public class AuthorizationHandler extends Object implements Handler<RoutingContext>
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 RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<AuthorizationHandler> |
__TYPE_ARG |
Constructor and Description |
---|
AuthorizationHandler(AuthorizationHandler delegate) |
AuthorizationHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
AuthorizationHandler |
addAuthorizationProvider(AuthorizationProvider authorizationProvider)
Adds a provider that shall be used to retrieve the required authorizations for the user to attest.
|
static AuthorizationHandler |
create(Authorization authorization)
create the the handler that will check the specified authorization
Note that to check several authorizations, you can specify a sub-interface such as
AndAuthorization or OrAuthorization |
boolean |
equals(Object o) |
AuthorizationHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static AuthorizationHandler |
newInstance(AuthorizationHandler arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<AuthorizationHandler> __TYPE_ARG
public AuthorizationHandler(AuthorizationHandler delegate)
public AuthorizationHandler(Object delegate)
public AuthorizationHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlepublic static AuthorizationHandler create(Authorization authorization)
AndAuthorization
or OrAuthorization
authorization
- the authorization to attest.public AuthorizationHandler addAuthorizationProvider(AuthorizationProvider authorizationProvider)
authorizationProvider
- a provider.public static AuthorizationHandler newInstance(AuthorizationHandler arg)
Copyright © 2024 Eclipse. All rights reserved.