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 authenticated for this Request.
       This value is also used to calculate the value to be returned
       by the |getRemoteUser()| method."

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/catalina/docs/api/org/apache/catalina/HttpRequest.html

Robert

Bob Langford wrote:

I've been looking at the various methods of doing access control, and
many of the messages I've seen (on this list and elsewhere) mention
doing something like:

hrequest.setUserPrincipal( new MyPrincipal(username) );

so that other code can call getUserPrincipal(), etc.

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-1253 fax: 804-745-7803 http://www.silicon-masters.com/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to