Following up on a prior question, I m trying to figure out how to set up container-based authentication for a J2EE application. Specifically, I need to be able to apply a password digest algorithm other than the ones supported by the java.security.MessageDigest
(which are SHA, MD2, or MD5 - here s where I think that limitation is documented). In this case my database stores Blowfish-encrypted passwords.
I already have the Java code written to get the encrypted password from my database, and compare the user-entered password with the database one by performing the Blowfish encryption. How do I set it up so that the container just uses my own Java class(es) to perform user authentication?
I m using JBoss AS 5.1 (which I think means my Tomcat version is 6).