UserHashedTableAuth

class UserHashedTableAuth(val digester: (String) -> ByteArray, val table: Map<String, ByteArray>)

An in-memory table that keeps usernames and password hashes. This allows you not to compromise user passwords if your data source is leaked.

See also

Constructors

Link copied to clipboard
constructor(digester: (String) -> ByteArray, table: Map<String, ByteArray>)

Properties

Link copied to clipboard

a hash function to compute password digest

Link copied to clipboard

of usernames and hashed passwords

Functions

Link copied to clipboard

Authenticates a user by credential and returns a UserIdPrincipal instance if the credential pair is valid.