public interface JWTAuth extends AuthProvider
AuthProvider instances.| 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.
|
authenticatestatic JWTAuth create(Vertx vertx, JsonObject config)
vertx - the Vertx instanceconfig - the configString 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.