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
.
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
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
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
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
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?