why don't use :

req.getUserPrincipal().toString();

Gary S. Cuozzo wrote:
> check out request.getRemoteUser() and request.isUserInRole(String role)
> 
> hth,
> gary.
> 
> 
> Jim Crossley wrote:
> 
>> Is there a portable way for me to obtain the JAAS Subject for an 
>> authenticated user from within a servlet?
>>
>> I understand the Subject is associated with the JNDI name, 
>> "comp/env/security/Subject", if authenticated via the 
>> JaasSecurityManager, but that's not portable, is it?
>>
>> Why isn't the Subject obtainable from the standard interfaces?  I was 
>> hoping to use some Principals for authorization purposes.
>>
>> Thanks,
>> Jim
>>
>>
>> -------------------------------------------------------
>> Sponsored by: AMD - Your access to the experts on Hammer Technology! 
>> Open Source & Linux Developers, register now for the AMD Developer 
>> Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>  
>>
> 
> 
> 
> 
> -------------------------------------------------------
> Sponsored by: AMD - Your access to the experts on Hammer Technology! 
> Open Source & Linux Developers, register now for the AMD Developer 
> Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-- 
Emerson Cargnin
SICREDI - Tel : 3358-4860



-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to