RE: where is setUserPrincipal() ?

2004-03-23 Thread Shapira, Yoav
Howdy, HttpRequest is a tomcat-specific class, unlike HttpServletRequest. I know the names are similar, but be careful not to confuse them. HttpServletRequest does not include setUserPrincipal in its interface. You can use a custom HttpServletRequestWrapper in combination with a filter

where is setUserPrincipal() ?

2004-03-22 Thread Bob Langford
. But there is no setUserPrincipal method on the HttpServletRequest, as far as I (and my compiler) can see. What's going on? Am I supposed to use some non-standard wrapper for the request? Thanks for any help! -- Bob Langford Silicon Masters Consulting, Inc.8207 Stone River Court, Richmond, VA 23235 phone: 804-674

Re: where is setUserPrincipal() ?

2004-03-22 Thread Robert Hall
In case you haven't already gotten to the bottom of this, here's a perspective; afaik, HttpRequest.setUserPrincipal() is implemented by the container (ie - Tomcat). From the docs: public void *setUserPrincipal*(java.security.Principal principal) Set the Principal who has been

setUserPrincipal

2003-11-18 Thread Gary Hardy
I'm going around google circles... Within a servlet how do you go about creating a java.security.Principal given a username and password? i.e. how-to login within a servlet given a username and password? Thanks, gary... - To

Re: setUserPrincipal

2003-11-18 Thread Christopher Schultz
Gary, I'm going around google circles... Within a servlet how do you go about creating a java.security.Principal given a username and password? i.e. how-to login within a servlet given a username and password? You can't do what you want to do, here. You can't use app-level security to set the

Re: setUserPrincipal

2003-11-18 Thread Bill Barker
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gary, I'm going around google circles... Within a servlet how do you go about creating a java.security.Principal given a username and password? i.e. how-to login within a servlet given a username and password?