public class JWTAuthHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<JWTAuthHandler> |
__TYPE_ARG |
Constructor and Description |
---|
JWTAuthHandler(io.vertx.ext.web.handler.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) |
io.vertx.ext.web.handler.JWTAuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static JWTAuthHandler |
newInstance(io.vertx.ext.web.handler.JWTAuthHandler arg) |
void |
parseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
void |
parseCredentials(RoutingContext context,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
rx.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 TypeArg<JWTAuthHandler> __TYPE_ARG
public JWTAuthHandler(io.vertx.ext.web.handler.JWTAuthHandler delegate)
public JWTAuthHandler(Object delegate)
public io.vertx.ext.web.handler.JWTAuthHandler getDelegate()
getDelegate
in interface AuthenticationHandler
public void handle(RoutingContext event)
handle
in interface io.vertx.core.Handler<RoutingContext>
handle
in interface AuthenticationHandler
event
- the event to handlepublic void parseCredentials(RoutingContext context, io.vertx.core.Handler<io.vertx.core.AsyncResult<Credentials>> handler)
parseCredentials
in interface AuthenticationHandler
context
- the routing contexthandler
- the handler to be called once the information is available.public void parseCredentials(RoutingContext context)
parseCredentials
in interface AuthenticationHandler
context
- the routing contextpublic rx.Single<Credentials> rxParseCredentials(RoutingContext context)
rxParseCredentials
in interface AuthenticationHandler
context
- the routing contextpublic String authenticateHeader(RoutingContext context)
authenticateHeader
in interface AuthenticationHandler
context
- public static JWTAuthHandler create(JWTAuth authProvider)
authProvider
- the auth provider to usepublic static JWTAuthHandler newInstance(io.vertx.ext.web.handler.JWTAuthHandler arg)
Copyright © 2020 Eclipse. All rights reserved.