Auth

class Auth(logger: SystemLogger, databaseRoot: Path, autoRepair: Boolean = false, iterations: Int, keyLength: Int = 256, algorithm: String = "PBKDF2WithHmacSHA256")

Constructors

Link copied to clipboard
constructor(logger: SystemLogger, databaseRoot: Path, autoRepair: Boolean = false, iterations: Int, keyLength: Int = 256, algorithm: String = "PBKDF2WithHmacSHA256")

Functions

Link copied to clipboard
fun findUser(userName: String, password: String? = null): UserEntry?

Return user roles for the username.

Link copied to clipboard

Return the map (needed e.g. for encoding passwords using the same salt)

Link copied to clipboard
Link copied to clipboard
fun replace(newEntries: List<UserEntry>): <Error class: unknown class>

Update the entries with the given user entries.

Link copied to clipboard
fun update(newRolesMap: UserRoleMap = userRolesMap): <Error class: unknown class>

fun update(inputStream: InputStream): <Error class: unknown class>

Update the entries with a UserRoleMap received from a stream.