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 | Method and Description |
---|---|
static JWTAuth |
create(Vertx vertx,
JsonObject config)
Create a JWT auth provider
|
String |
generateToken(JsonObject claims,
JWTOptions options)
Generate a new JWT token.
|
Object |
getDelegate() |
static JWTAuth |
newInstance(JWTAuth arg) |
authenticate, authenticateObservable, newInstance
public JWTAuth(JWTAuth delegate)
public Object getDelegate()
getDelegate
in class AuthProvider
public static JWTAuth create(Vertx vertx, JsonObject 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 © 2015. All Rights Reserved.