JWT
data class JWT(val issuer: String, val audience: String, val subject: String, val id: String? = null, val algorithm: String = DEFAULT_ALGORITHM, val keyId: String? = null, val expiry: Date = Date(Date().time + (DEFAULT_LIFETIME * 1000)), val issuedAt: Date = Date(), val notValidBefore: Date? = null, val payload: JSONObject = JSONObject())
Encapsulates a JSON Web Token.
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.
issued At
date/time at which the token was issued.
not Valid Before
token is not valid before this time.