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.
|
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 contextSingle<Credentials> rxParseCredentials(RoutingContext context)
context - the routing contextString authenticateHeader(RoutingContext context)
context - static AuthenticationHandler newInstance(AuthenticationHandler arg)
Copyright © 2020 Eclipse. All rights reserved.