Package: io.vertx.groovy.ext.web.handler

## [Groovy] Class JWTAuthHandler

- io.vertx.groovy.ext.web.handler.JWTAuthHandler

- All Implemented Interfaces and Traits:
    AuthHandler

      @CompileStatic
      class JWTAuthHandler

  An auth handler that provides JWT Authentication support.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `JWTAuthHandler (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `AuthHandler` | `addAuthorities(Set<String> authorities)` Add a set of required authorities for this auth handler
    `AuthHandler` | `addAuthority(String authority)` Add a required authority for this auth handler
    `static JWTAuthHandler` | `create(AuthProvider authProvider)` Create a JWT auth handler
    `static JWTAuthHandler` | `create(AuthProvider authProvider, String skip)` Create a JWT auth handler
    `Object` | `getDelegate()`
    `void` | `handle(RoutingContext arg0)`
    `JWTAuthHandler` | `setAudience(List<String> audience)` Set the audience list
    `JWTAuthHandler` | `setIgnoreExpiration(boolean ignoreExpiration)` Set whether expiration is ignored
    `JWTAuthHandler` | `setIssuer(String issuer)` Set the issuer

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### JWTAuthHandler(Object delegate)

  - ### Method Detail

    - #### AuthHandler addAuthorities(Set<String> authorities)

      Add a set of required authorities for this auth handler

      Returns:
        a reference to this, so the API can be used fluently
      Parameters:
        `authorities` - the set of authorities

    - #### AuthHandler addAuthority(String authority)

      Add a required authority for this auth handler

      Returns:
        a reference to this, so the API can be used fluently
      Parameters:
        `authority` - the authority

    - #### static JWTAuthHandler create(AuthProvider authProvider)

      Create a JWT auth handler

      Returns:
        the auth handler
      Parameters:
        `authProvider` - the auth provider to use

    - #### static JWTAuthHandler create(AuthProvider authProvider, String skip)

      Create a JWT auth handler

      Returns:
        the auth handler
      Parameters:
        `authProvider` - the auth provider to use.
        skip

    - #### Object getDelegate()

    - #### void handle(RoutingContext arg0)

    - #### JWTAuthHandler setAudience(List<String> audience)

      Set the audience list

      Returns:
        a reference to this for fluency
      Parameters:
        `audience` - the audience list

    - #### JWTAuthHandler setIgnoreExpiration(boolean ignoreExpiration)

      Set whether expiration is ignored

      Returns:
        a reference to this for fluency
      Parameters:
        `ignoreExpiration` - whether expiration is ignored

    - #### JWTAuthHandler setIssuer(String issuer)

      Set the issuer

      Returns:
        a reference to this for fluency
      Parameters:
        `issuer` - the issuer