tomcat-users mailing list archives

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

> 
> From: "Venkat Reddy Valluri" <venkat.valluri@quinnfable.com>
> Date: 2006/01/24 Tue AM 11:08:24 EST
> To: <users@tomcat.apache.org>
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message