OpaqueTokenDetails

data class OpaqueTokenDetails @JvmOverloads constructor(val identity: Identity, val expiresAt: Instant? = null, val roles: Set<RouteRole> = emptySet())

The stored record behind an opaque token: the caller's own identity, optional expiresAt the extension checks before authenticating, and the roles granted on success.

expiresAt is compared against OpaqueTokenAuthenticator's clock; null means the token never expires. Revoke a token by having OpaqueTokenLookup return null for it, rather than returning an OpaqueTokenDetails with a past expiresAt. roles land on io.github.mzlnk.javalin.security.authentication.Authentication.roles.

Constructors

Link copied to clipboard
constructor(identity: Identity, expiresAt: Instant? = null, roles: Set<RouteRole> = emptySet())

Properties

Link copied to clipboard
val expiresAt: Instant? = null
Link copied to clipboard
Link copied to clipboard
val roles: Set<RouteRole>