Interface JWTAuth
- All Superinterfaces:
AuthenticationProvider
Factory interface for creating JWT based
AuthenticationProvider instances.- Author:
- Paulo Lopes
-
Method Summary
Modifier and TypeMethodDescriptionstatic JWTAuthcreate(Vertx vertx, JWTAuthOptions config) Create a JWT auth providergenerateToken(JsonObject claims) Generate a new JWT token.generateToken(JsonObject claims, JWTOptions options) Generate a new JWT token.Methods inherited from interface AuthenticationProvider
authenticate
-
Method Details
-
create
Create a JWT auth provider- Parameters:
vertx- the Vertx instanceconfig- the config- Returns:
- the auth provider
-
generateToken
Generate a new JWT token.- Parameters:
claims- Json with user defined claims for a list of official claimsoptions- extra options for the generation- Returns:
- JWT encoded token
- See Also:
-
generateToken
Generate a new JWT token.- Parameters:
claims- Json with user defined claims for a list of official claims- Returns:
- JWT encoded token
- See Also:
-