BasicUserDetails

data class BasicUserDetails @JvmOverloads constructor(val identity: Identity, val encodedPassword: String, val roles: Set<RouteRole> = emptySet())

Lookup result for HTTP Basic authentication: the caller's identity, the encodedPassword used to verify it, and the roles granted on success.

Separates the caller's identity from the encodedPassword used to verify it, so the encoded password never has to live on the Identity itself and is not reachable from handlers via ctx.identity<I>(). encodedPassword is compared against the caller-supplied raw password by PasswordEncoder. roles land on io.github.mzlnk.javalin.security.authentication.Authentication.roles.

Constructors

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

Properties

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