public class ChainAuthHandler extends Object implements AuthHandler, 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) |
| Modifier and Type | Method and Description |
|---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Deprecated.
|
AuthHandler |
addAuthority(String authority)
Deprecated.
|
ChainAuthHandler |
append(AuthHandler authHandler)
Appends a auth provider to the chain.
|
void |
authorize(User user)
Deprecated.
|
void |
authorize(User user,
Handler<AsyncResult<Void>> handler)
Deprecated.
|
void |
clear()
Clears the chain.
|
static ChainAuthHandler |
create() |
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<JsonObject>> handler)
Parses the credentials from the request into a JsonObject.
|
boolean |
remove(AuthHandler authHandler)
Removes a provider from the chain.
|
Single<Void> |
rxAuthorize(User user)
Deprecated.
|
Single<JsonObject> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancenewInstancepublic static final io.vertx.lang.rx.TypeArg<ChainAuthHandler> __TYPE_ARG
public ChainAuthHandler(ChainAuthHandler delegate)
public ChainAuthHandler getDelegate()
getDelegate in interface AuthenticationHandlergetDelegate in interface AuthHandlerpublic void handle(RoutingContext event)
handle in interface Handler<RoutingContext>handle in interface AuthenticationHandlerhandle in interface AuthHandlerevent - the event to handlepublic void parseCredentials(RoutingContext context, Handler<AsyncResult<JsonObject>> handler)
parseCredentials in interface AuthenticationHandlerparseCredentials in interface AuthHandlercontext - the routing contexthandler - the handler to be called once the information is available.public void parseCredentials(RoutingContext context)
parseCredentials in interface AuthenticationHandlerparseCredentials in interface AuthHandlercontext - the routing contextpublic Single<JsonObject> rxParseCredentials(RoutingContext context)
rxParseCredentials in interface AuthenticationHandlerrxParseCredentials in interface AuthHandlercontext - the routing context@Deprecated public AuthHandler addAuthority(String authority)
addAuthority in interface AuthHandlerauthority - the authority@Deprecated public AuthHandler addAuthorities(Set<String> authorities)
addAuthorities in interface AuthHandlerauthorities - the set of authorities@Deprecated public void authorize(User user, Handler<AsyncResult<Void>> handler)
authorize in interface AuthHandleruser - a user.handler - the handler for the result.@Deprecated public void authorize(User user)
authorize in interface AuthHandleruser - a user.@Deprecated public Single<Void> rxAuthorize(User user)
rxAuthorize in interface AuthHandleruser - a user.public static ChainAuthHandler create()
public ChainAuthHandler append(AuthHandler authHandler)
authHandler - auth handlerpublic boolean remove(AuthHandler authHandler)
authHandler - provider to removepublic void clear()
public static ChainAuthHandler newInstance(ChainAuthHandler arg)
Copyright © 2019 Eclipse. All rights reserved.