Hi Viv,
I suppose that you are already using one of the JAAS login module (probably the database login module) configured on <server_conf>/conf/login-config.xml.
So, for example, I have this one on my configuration file:
I think that simply
you should have a look how it is implemented the DatabaseServerLoginModule. After that you can extends or decorate it (it depends on its implementation).
Regards,
Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : [email protected]<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>