SessionDetails

data class SessionDetails @JvmOverloads constructor(val identity: Identity, val roles: Set<RouteRole> = emptySet()) : Serializable

Session payload: the caller's identity and the roles granted for the session.

Stored by SessionManager implementations (including HttpSessionManager). roles land on io.github.mzlnk.javalin.security.authentication.Authentication.roles when the session is validated. When using HttpSessionManager, identity must itself be Serializable.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
val roles: Set<RouteRole>