io.vertx.ext.auth.jwt

## Interface JWTAuth

- All Superinterfaces:
    AuthenticationProvider

      public interface JWTAuth
      extends AuthenticationProvider

  Factory interface for creating JWT based `AuthenticationProvider` instances.
  Author:
    Paulo Lopes

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    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.

    - ### Methods inherited from interface io.vertx.ext.auth.authentication.AuthenticationProvider

      `authenticate, authenticate, authenticate, authenticate`

- - ### Method Detail

    - #### create

          static JWTAuth create(Vertx vertx,
                                JWTAuthOptions config)

      Create a JWT auth provider
      Parameters:
        `vertx` - the Vertx instance
        `config` - the config
      Returns:
        the auth provider

    - #### generateToken

          String generateToken(JsonObject claims,
                               JWTOptions options)

      Generate a new JWT token.
      Parameters:
        `claims` - Json with user defined claims for a list of official claims
        `options` - extra options for the generation
      Returns:
        JWT encoded token
      See Also:
        www.iana.org/assignments/jwt/jwt.xhtml

    - #### generateToken

          String generateToken(JsonObject claims)

      Generate a new JWT token.
      Parameters:
        `claims` - Json with user defined claims for a list of official claims
      Returns:
        JWT encoded token
      See Also:
        www.iana.org/assignments/jwt/jwt.xhtml

Copyright © 2022 Eclipse. All rights reserved.