I would like to be able to provide my own DatabaseServerLoginModule or have some means of getting my own principal object returned from HttpServletRequest.getUserPrincipal(). I would like this principal object to contain additional methiods like getPreferredCss() and so on. How do I do this?
Got any url that has in formation on this?
You will have to write your own JAAS login module.
This works pretty well with the latest JBoss version (4.0.2). You might have issues with the custom principal in the servlet with older versions.
You can take a look at the sticky HowTo at the beginning of this forum, it contains documentation and sample code.