Package: io.vertx.groovy.ext.auth.jwt

## [Groovy] Class JWTAuth

- io.vertx.groovy.ext.auth.jwt.JWTAuth

- Factory interface for creating JWT based io.vertx.groovy.ext.auth.AuthProvider instances.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `JWTAuth (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static JWTAuth` | `create(Vertx vertx, Map<String, Object> config)` Create a JWT auth provider
    `String` | `generateToken(Map<String, Object> claims, Map<String, Object> options)` Generate a new JWT token.
    `Object` | `getDelegate()`

- - ### Constructor Detail

    - #### JWTAuth(Object delegate)

  - ### Method Detail

    - #### static JWTAuth create(Vertx vertx, Map<String, Object> config)

      Create a JWT auth provider

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

    - #### String generateToken(Map<String, Object> claims, Map<String, Object> options)

      Generate a new JWT token.

      Returns:
        JWT encoded token
      Parameters:
        `claims` - Json with user defined claims for a list of official claims
        `options` - extra options for the generation (see JWTOptions)

    - #### Object getDelegate()