Well, by default, the GenericPrincipal class shouldn't be accessible from
your Servlet/Filter (ClassLoader magic :).  The best way is a do-it-yourself
parsing of tomcat-users.xml.

"Francois Paris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,

I am trying to list the current user roles, but I don't know very well how I
can do it.

I am using Tomcat/4.1.18.

I have found in the servlet api doc and Catalina api doc, two interesting
methods :

API Servlet :  HttpServletRequest.getUserPrincipal()
API Catalina :  GenericPrincipal.getRoles()

Any ideas ?

Thanks in advance.

Fran�ois.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to