class UserHashedTableAuth
Simple in-memory table that keeps user names and password hashes
UserHashedTableAuth(table: Map<String, ByteArray>) UserHashedTableAuth(config: ApplicationConfig) UserHashedTableAuth(digester: (String) -> ByteArray, table: Map<String, ByteArray>)
Simple in-memory table that keeps user names and password hashes |
val digester: (String) -> ByteArray
a hash function to compute password digest |
|
val table: Map<String, ByteArray>
of user names and hashed passwords |
fun authenticate(credential: UserPasswordCredential): UserIdPrincipal?
Authenticate user by credential and return an instance of UserIdPrincipal if the credential pair is valid |