public interface AuthHandler extends AuthenticationHandler, io.vertx.core.Handler<RoutingContext>
An auth handler allows your application to provide authentication/authorization support.
Auth handler requires a SessionHandler
to be on the routing chain before it.
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Method and Description |
---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Deprecated.
|
AuthHandler |
addAuthority(String authority)
Deprecated.
|
String |
authenticateHeader(RoutingContext context)
Deprecated.
|
void |
authorize(User user)
Deprecated.
|
void |
authorize(User user,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Deprecated.
|
io.vertx.ext.web.handler.AuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Deprecated.
|
static AuthHandler |
newInstance(io.vertx.ext.web.handler.AuthHandler arg) |
void |
postAuthentication(RoutingContext ctx)
Deprecated.
|
rx.Single<Void> |
rxAuthorize(User user)
Deprecated.
|
newInstance
io.vertx.ext.web.handler.AuthHandler getDelegate()
getDelegate
in interface AuthenticationHandler
@Deprecated void handle(RoutingContext event)
handle
in interface AuthenticationHandler
handle
in interface io.vertx.core.Handler<RoutingContext>
event
- the event to handle@Deprecated String authenticateHeader(RoutingContext context)
authenticateHeader
in interface AuthenticationHandler
context
- @Deprecated void postAuthentication(RoutingContext ctx)
postAuthentication
in interface AuthenticationHandler
ctx
- the routing context@Deprecated AuthHandler addAuthority(String authority)
authority
- the authority@Deprecated AuthHandler addAuthorities(Set<String> authorities)
authorities
- the set of authorities@Deprecated void authorize(User user, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
user
- a user.handler
- the handler for the result.@Deprecated void authorize(User user)
user
- a user.@Deprecated rx.Single<Void> rxAuthorize(User user)
user
- a user.static AuthHandler newInstance(io.vertx.ext.web.handler.AuthHandler arg)
Copyright © 2021 Eclipse. All rights reserved.