io.vertx.ext.auth

## Class JWTOptions

- java.lang.Object
- - io.vertx.ext.auth.JWTOptions

-     public class JWTOptions
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JWTOptions()`
    `JWTOptions(JsonObject json)`
    `JWTOptions(JWTOptions other)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `JWTOptions` | `addAudience(String audience)`
    `JWTOptions` | `addPermission(String permission)` Deprecated. See `JWTAuthorization` for a correct way to handle permissions. Add a permission to this token.
    `String` | `getAlgorithm()`
    `List<String>` | `getAudience()`
    `int` | `getExpiresInSeconds()`
    `JsonObject` | `getHeader()`
    `String` | `getIssuer()`
    `int` | `getLeeway()`
    `String` | `getNonceAlgorithm()`
    `List<String>` | `getPermissions()` Deprecated.
    `String` | `getSubject()`
    `boolean` | `isIgnoreExpiration()`
    `boolean` | `isNoTimestamp()`
    `JWTOptions` | `setAlgorithm(String algorithm)`
    `JWTOptions` | `setAudience(List<String> audience)`
    `JWTOptions` | `setExpiresInMinutes(int expiresInMinutes)`
    `JWTOptions` | `setExpiresInSeconds(int expires)`
    `JWTOptions` | `setHeader(JsonObject header)`
    `JWTOptions` | `setIgnoreExpiration(boolean ignoreExpiration)`
    `JWTOptions` | `setIssuer(String issuer)`
    `JWTOptions` | `setLeeway(int leeway)`
    `JWTOptions` | `setNonceAlgorithm(String nonceAlgorithm)`
    `JWTOptions` | `setNoTimestamp(boolean noTimestamp)`
    `JWTOptions` | `setPermissions(List<String> permissions)` Deprecated. See `JWTAuthorization` for a correct way to handle permissions. The permissions of this token.
    `JWTOptions` | `setSubject(String subject)`
    `JsonObject` | `toJson()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JWTOptions

          public JWTOptions()

    - #### JWTOptions

          public JWTOptions(JWTOptions other)

    - #### JWTOptions

          public JWTOptions(JsonObject json)

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

    - #### getLeeway

          public int getLeeway()

    - #### setLeeway

          public JWTOptions setLeeway(int leeway)

    - #### isIgnoreExpiration

          public boolean isIgnoreExpiration()

    - #### setIgnoreExpiration

          public JWTOptions setIgnoreExpiration(boolean ignoreExpiration)

    - #### getAlgorithm

          public String getAlgorithm()

    - #### setAlgorithm

          public JWTOptions setAlgorithm(String algorithm)

    - #### getHeader

          public JsonObject getHeader()

    - #### setHeader

          public JWTOptions setHeader(JsonObject header)

    - #### isNoTimestamp

          public boolean isNoTimestamp()

    - #### setNoTimestamp

          public JWTOptions setNoTimestamp(boolean noTimestamp)

    - #### getExpiresInSeconds

          public int getExpiresInSeconds()

    - #### setExpiresInSeconds

          public JWTOptions setExpiresInSeconds(int expires)

    - #### setExpiresInMinutes

          public JWTOptions setExpiresInMinutes(int expiresInMinutes)

    - #### getAudience

          public List<String> getAudience()

    - #### setAudience

          public JWTOptions setAudience(List<String> audience)

    - #### addAudience

          public JWTOptions addAudience(String audience)

    - #### getIssuer

          public String getIssuer()

    - #### setIssuer

          public JWTOptions setIssuer(String issuer)

    - #### getSubject

          public String getSubject()

    - #### setSubject

          public JWTOptions setSubject(String subject)

    - #### setPermissions

          @Deprecated
          public JWTOptions setPermissions(List<String> permissions)

      Deprecated. See `JWTAuthorization` for a correct way to handle permissions. The permissions of this token.
      Parameters:
        `permissions` - the permissions for this token that will be used for AuthZ
      Returns:
        fluent API

    - #### addPermission

          @Deprecated
          public JWTOptions addPermission(String permission)

      Deprecated. See `JWTAuthorization` for a correct way to handle permissions. Add a permission to this token.
      Parameters:
        `permission` - permission for this token that will be used for AuthZ
      Returns:
        fluent API

    - #### getPermissions

          @Deprecated
          public List<String> getPermissions()

      Deprecated.

    - #### getNonceAlgorithm

          public String getNonceAlgorithm()

    - #### setNonceAlgorithm

          public JWTOptions setNonceAlgorithm(String nonceAlgorithm)

Copyright © 2024 Eclipse. All rights reserved.