public interface AuthenticationHandler extends 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 |
---|---|
String |
authenticateHeader(RoutingContext context)
Returns
|
io.vertx.ext.web.handler.AuthenticationHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
static AuthenticationHandler |
newInstance(io.vertx.ext.web.handler.AuthenticationHandler arg) |
void |
parseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
void |
parseCredentials(RoutingContext context,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
rx.Single<Credentials> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
io.vertx.ext.web.handler.AuthenticationHandler getDelegate()
void handle(RoutingContext event)
handle
in interface io.vertx.core.Handler<RoutingContext>
event
- the event to handlevoid parseCredentials(RoutingContext context, io.vertx.core.Handler<io.vertx.core.AsyncResult<Credentials>> handler)
context
- the routing contexthandler
- the handler to be called once the information is available.void parseCredentials(RoutingContext context)
context
- the routing contextrx.Single<Credentials> rxParseCredentials(RoutingContext context)
context
- the routing contextString authenticateHeader(RoutingContext context)
context
- static AuthenticationHandler newInstance(io.vertx.ext.web.handler.AuthenticationHandler arg)
Copyright © 2020 Eclipse. All rights reserved.