public class JWTAuthHandler 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<JWTAuthHandler> |
__TYPE_ARG |
| Constructor and Description |
|---|
JWTAuthHandler(JWTAuthHandler delegate) |
JWTAuthHandler(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticateHeader(RoutingContext context)
Returns
|
static JWTAuthHandler |
create(JWTAuth authProvider)
Create a JWT auth handler
|
boolean |
equals(Object o) |
JWTAuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static JWTAuthHandler |
newInstance(JWTAuthHandler 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, waitnewInstancepublic static final io.vertx.lang.rx.TypeArg<JWTAuthHandler> __TYPE_ARG
public JWTAuthHandler(JWTAuthHandler delegate)
public JWTAuthHandler(Object delegate)
public JWTAuthHandler getDelegate()
getDelegate in interface AuthenticationHandlerpublic void handle(RoutingContext event)
handle in interface Handler<RoutingContext>handle in interface AuthenticationHandlerevent - the event to handlepublic String authenticateHeader(RoutingContext context)
authenticateHeader in interface AuthenticationHandlercontext - public void postAuthentication(RoutingContext ctx)
postAuthentication in interface AuthenticationHandlerctx - the routing contextpublic static JWTAuthHandler create(JWTAuth authProvider)
authProvider - the auth provider to usepublic 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 JWTAuthHandler newInstance(JWTAuthHandler arg)
Copyright © 2021 Eclipse. All rights reserved.