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