Options related to creation of new tokens.

If any expiresInMinutes, audience, subject, issuer are not provided, there is no default. The jwt generated won't include those properties in the payload.

Generated JWTs will include an iat claim by default unless noTimestamp is specified.

  • JWTOptions
    • BaseDataObject
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Initializer
JWTOptions(String? algorithm = null, {String*}? audience = null, {String*}? audiences = null, Integer? expiresInMinutes = null, Integer? expiresInSeconds = null, JsonObject? header = null, Map<String,String>? headers = null, String? issuer = null, Boolean? noTimestamp = null, {String*}? permissions = null, String? subject = null)
Parameters:
  • algorithm = null

    The algorithm to use, it should be one of the alias [HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512]

  • audience = null

    The target audience of this token

  • audiences = null

    The target audience of this token

  • expiresInMinutes = null

    The expiration time for the token in minutes

  • expiresInSeconds = null

    The expiration time for the token in seconds

  • header = null
  • headers = null
  • issuer = null

    The issuer of this token

  • noTimestamp = null

    Disable the generation of issued at claim

  • permissions = null

    The permissions of this token.

  • subject = null

    The subject of this token

Attributes
algorithmshared String? algorithm

The algorithm to use, it should be one of the alias [HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512]

audienceshared {String*}? audience

The target audience of this token

audiencesshared {String*}? audiences

The target audience of this token

expiresInMinutesshared Integer? expiresInMinutes

The expiration time for the token in minutes

expiresInSecondsshared Integer? expiresInSeconds

The expiration time for the token in seconds

shared JsonObject? header
headersshared Map<String,String>? headers
issuershared String? issuer

The issuer of this token

noTimestampshared Boolean? noTimestamp

Disable the generation of issued at claim

permissionsshared {String*}? permissions

The permissions of this token.

subjectshared String? subject

The subject of this token

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
toJsonshared actual default JsonObject toJson()
Refines BaseDataObject.toJson
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: BaseDataObject
toJson