public interface JWTAuth extends AuthProvider
AuthProvider
instances.Modifier and Type | Method and Description |
---|---|
static JWTAuth |
create(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config)
Create a JWT auth provider
|
String |
generateToken(io.vertx.core.json.JsonObject claims,
JWTOptions options)
Generate a new JWT token.
|
authenticate
static JWTAuth create(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
vertx
- the Vertx instanceconfig
- the configString generateToken(io.vertx.core.json.JsonObject claims, JWTOptions options)
claims
- Json with user defined claims for a list of official claimsoptions
- extra options for the generationCopyright © 2018. All rights reserved.