public interface JWTAuth extends AuthenticationProvider
AuthenticationProvider
instances.Modifier and Type | Method and Description |
---|---|
static JWTAuth |
create(Vertx vertx,
JWTAuthOptions config)
Create a JWT auth provider
|
String |
generateToken(JsonObject claims)
Generate a new JWT token.
|
String |
generateToken(JsonObject claims,
JWTOptions options)
Generate a new JWT token.
|
authenticate, authenticate, authenticate, authenticate
static JWTAuth create(Vertx vertx, JWTAuthOptions 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 generationString generateToken(JsonObject claims)
claims
- Json with user defined claims for a list of official claimsCopyright © 2024 Eclipse. All rights reserved.