Generic Authentication Handler
Note that all of these authentication handlers accept a PasswordEncoder, which would allow you to translate the supplied password into something like an MD5 hash, which would mean you do not need to store the passwords on your system in plain text. The examples below are simple, and thus do not use this advanced technique.
Accepts Users Authentication Handler
File System Authentication Handler
Example password file: