You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by LERBSCHER Jean-Pierre <je...@cofiroute.fr> on 2005/04/19 10:15:38 UTC

RE : Find login information from tomcat security

Hi, 
To my knowledge, you have no way to access GenericPrincipal object except if
to develop your own realm. In general, you do not need to reach Principal,
you have to define security constraint, or roles, authentication methods...

-----Message d'origine-----
De : howarddy3@att.net [mailto:howarddy3@att.net] 
Envoyé : mardi 19 avril 2005 05:41
À : Tomcat Users List
Cc : Gia Thornton
Objet : Re: Find login information from tomcat security

I'm also interested in how to get that principal info and maybe how to
overwrite or add methods.


 -------------- Original message ----------------------
From: Gia Thornton <fo...@yahoo.com>
> Hi,
>    I am using Form-based tomcat security.  I use a servlet to find login 
> information such as the principal name, all the role names for this
principal.  
> I can use request.getUserPrincipal() from
> javax.servlet.http.HttpServletRequest.  Is there anyway I can use 
> GenericPrincipal class from package org.apache.catalina.realm of Tomcat in

> servlet?  Thank you for your help.
>  
>  
> regards,
> 
> 
> 
> 		
> ---------------------------------
> Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org