UserRoleMap

data class UserRoleMap(val entries: List<UserEntry> = listOf(), val iterations: Int, val keyLength: Int, val algorithm: String)

Contains a salt value + list of user role entries.

Constructors

Link copied to clipboard
constructor(entries: List<UserEntry> = listOf(), iterations: Int, keyLength: Int, algorithm: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun calculateHash(password: String, saltBytes: ByteArray): ByteArray
Link copied to clipboard
fun findEntry(userName: String, password: String? = null): UserEntry?
Link copied to clipboard
fun replace(newEntries: List<UserEntry>): UserRoleMap