patching and subclassing securityfilter for my own customizations
"Ethan Tuttle" <[email protected]> Wed, 11 Dec 2002 16:51:17 -0800
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <003f01c2a178$946d8c70$86df7a42@laptop> |
Hi, I've wedged SecurityFilter into my web app and now I want to subclass it to do some things differently. In particular, I really like that security filter: - supports declarative security in a config file - implements saved requests while intercepting for login For my own purposes, I want to make it: - not wrap the HttpRequest, rather use a request attribute to store and get the user principal. This is nicer for my view (velocity templates). - store a backend service object in addition to the user principal - respond to "remember me" options in the login form - automatically authenticate with my own persistent cookie system - mark failed logins by placing a flag in the request These customizations could be implemented by my own subclass, if the SecurityFilter class was a little more decomposed with public access to the important methods. I'm going to do the modifications myself to make the subclassing possible. Would the author / community be interested in my changes when I'm done? Ethan ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/