tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Warren Pace <>
Subject Re: J2EE Security roles
Date Tue, 24 Jan 2006 21:04:55 GMT

> From: "Venkat Reddy Valluri" <>
> Date: 2006/01/24 Tue AM 11:08:24 EST
> To: <>
> Subject: J2EE Security roles
> Hi, 
>    I am using   catalina-4.0.4 and Form based authentication with  JDBCRealm.
>    I would like to get the roles of a user from  session object in which I think    
   roles must have been stored by j2ee secuirity realm when user is authenticated  
>    Can you please let me know  thru which session attribute I can access roles
>From looking throught the HttpServletRequest interface on the Sun site, the closest thing
I can find to what you're asking for is the "isUserInRole()" method which returns a boolean
value.  Use the getRemoteUser() method in combination with isUserInRole()

> Thanks in advance,
> --Venkat

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message