1 Reply Latest reply on May 31, 2005 1:49 PM by Thomas Cherel

    Custom Principal class

    Swamy Nathan Newbie

      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?

      Thanks

        • 1. Re: Custom Principal class
          Thomas Cherel Novice

          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.

          Thomas