"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? > > You can't do what you want to do, here. You can't use app-level security > to set the principal for a container-level security policy :( > > If you want, you can implement a Filter that wraps your > HttpServletRequest object with something you write yourself which does > have this ability. Or, you can set the principal when you wrap the > request... >
However, if you want it to work with security-contraints in your web.xml, you likely need to implement your own Realm. > -chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]