public class ChainAuthHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ChainAuthHandler> |
__TYPE_ARG |
Constructor and Description |
---|
ChainAuthHandler(ChainAuthHandler delegate) |
ChainAuthHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
ChainAuthHandler |
add(AuthenticationHandler other)
Appends a auth provider to the chain.
|
static ChainAuthHandler |
all()
Create a chain authentication handler that will assert that all handlers pass the verification.
|
static ChainAuthHandler |
any()
Create a chain authentication handler that will assert that any handler passes the verification.
|
String |
authenticateHeader(RoutingContext context)
Returns
|
static ChainAuthHandler |
create()
Deprecated.
|
boolean |
equals(Object o) |
ChainAuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static ChainAuthHandler |
newInstance(ChainAuthHandler 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.
|
Single<Credentials> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<ChainAuthHandler> __TYPE_ARG
public ChainAuthHandler(ChainAuthHandler delegate)
public ChainAuthHandler(Object delegate)
public ChainAuthHandler getDelegate()
getDelegate
in interface AuthenticationHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface AuthenticationHandler
event
- the event to handlepublic String authenticateHeader(RoutingContext context)
authenticateHeader
in interface AuthenticationHandler
context
- public void postAuthentication(RoutingContext ctx)
postAuthentication
in interface AuthenticationHandler
ctx
- the routing context@Deprecated public static ChainAuthHandler create()
public static ChainAuthHandler all()
public static ChainAuthHandler any()
public ChainAuthHandler add(AuthenticationHandler other)
other
- auth handlerpublic void parseCredentials(RoutingContext context, Handler<AsyncResult<Credentials>> handler)
context
- the routing contexthandler
- the handler to be called once the information is available.public void parseCredentials(RoutingContext context)
context
- the routing contextpublic Single<Credentials> rxParseCredentials(RoutingContext context)
context
- the routing contextpublic static ChainAuthHandler newInstance(ChainAuthHandler arg)
Copyright © 2021 Eclipse. All rights reserved.