public class JWTAuth extends AuthProvider
AuthProvider instances.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<JWTAuth> |
__TYPE_ARG |
| Modifier and Type | Method and Description |
|---|---|
static JWTAuth |
create(Vertx vertx,
JWTAuthOptions config)
Create a JWT auth provider
|
String |
generateToken(JsonObject claims,
JWTOptions options)
Generate a new JWT token.
|
JWTAuth |
getDelegate() |
static JWTAuth |
newInstance(JWTAuth arg) |
authenticate, authenticateObservable, newInstance, rxAuthenticatepublic JWTAuth(JWTAuth delegate)
public JWTAuth getDelegate()
getDelegate in class AuthProviderpublic static JWTAuth create(Vertx vertx, JWTAuthOptions config)
vertx - the Vertx instanceconfig - the configpublic String generateToken(JsonObject claims, JWTOptions options)
claims - Json with user defined claims for a list of official claimsoptions - extra options for the generationCopyright © 2017. All rights reserved.