JWT

constructor(issuer: String, audience: String, subject: String, id: String? = null, algorithm: String = DEFAULT_ALGORITHM, keyId: String? = null, expiry: Date = Date(Date().time + (DEFAULT_LIFETIME * 1000)), issuedAt: Date = Date(), notValidBefore: Date? = null, payload: JSONObject = JSONObject())

Parameters

issuer

URL to token issuer.

audience

Intended audience of the token.

subject

Identity associated with the token.

id

unique ID of the token.

algorithm

signature algorithm used to sign the token.

expiry

date/time at which token will expire.

issuedAt

date/time at which the token was issued.

notValidBefore

token is not valid before this time.