RE: Why isn't AuthenticatorFactory a plug-in?
"Robert Taylor" <rtaylor-i88pJroZvhRWk0Htik3J/[email protected]> Tue, 14 Oct 2003 09:23:11 -0400
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <[email protected]> |
Oooops. You wouldn't need to add anything to the security-config file at
all.
Just put the IAuthenticatorFactory implementation class name as a
SecurityFilter init
parameter.
Now that's better. I don't have to alter the DTD or any config objects.
Well, since I haven't heard from any one, I'll go ahead with this and post
it back to the list if anyone is interested.
robert
> -----Original Message-----
> From: securityfilter-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:securityfilter-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of
> Robert Taylor
> Sent: Monday, October 13, 2003 1:48 PM
> To: securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [securityfilter-user] Why isn't AuthenticatorFactory a plug-in?
>
>
> I want to use SecurityFilter, but I have a need to execute
> additional logic
> in the FormAuthenticator.
>
> The javadocs for AuthenticatorFactory state that its design to easily
> extend.
> Why not design it as a plug in to the SecurityFilter?
>
> Couldn't you create an interface like:
>
> public interface IAuthenticatorFactory {
>
> public Authenticator createAuthenticator(
> FilterConfig filterConfig,
> SecurityConfig securityConfig
> ) throws Exception;
>
>
> }
>
>
> And then define something in the security-config.xml file like:
>
> <authenticatorfactory
> className="org.securityfilter.example.BaseAuthenticatorFactory"/>
>
> And then have SecurityFilter read an init parameter for the specified
> implementation
> of IAuthenticatorFactory and instantiate it on the fly.
> If not found it could use the default implementation.
>
> Right now, I would have to extend the SecurityFilter and override
> the init()
> just to
> use my own AuthenticatorFactory.
>
> Am I missing something simple, because this seems like such an obvious and
> trivial modification.
>
> robert
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> securityfilter-user mailing list
> securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/securityfilter-user
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php