public interface AuthenticationHandler extends 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
|
AuthenticationHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
static AuthenticationHandler |
newInstance(AuthenticationHandler arg) |
void |
parseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
void |
postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
rx.Single<Credentials> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
AuthenticationHandler getDelegate()
void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlevoid parseCredentials(RoutingContext context, Handler<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
- void postAuthentication(RoutingContext ctx)
ctx
- the routing contextstatic AuthenticationHandler newInstance(AuthenticationHandler arg)
Copyright © 2020 Eclipse. All rights reserved.