"Ignacio J. Ortega" wrote:
>
> I do like your idea , this was something i was talking some time ago,
> But better than for 3.2.2 ( that is on bug fix mode only , no new
> features ), But I would prefer to apply your idea to share Realms
> Implementatios between 3.3 and 4.0, a much more useful objetive..
I would like to see Tomcat taking the initiative and providing core
support for JAAS given then pending inclusion of JAAS in the final
release of JDK1.4. I know this would limit tomcat to JDK1.3 and above
but this should not be a problem for v4. All the existing realm
implementations can then be re-implemented as JAAS LoginModules.
Antony
>
> Saludos ,
> Ignacio J. Ortega
>
> > -----Mensaje original-----
> > De: Michael Jennings [mailto:[EMAIL PROTECTED]]
> > Enviado el: martes 5 de junio de 2001 1:27
> > Para: [EMAIL PROTECTED]
> > Asunto: realms and authentication
> >
> >
> > Hi everyone,
> >
> > Just for my own education, I decided to write my own
> > authentication-stuff
> > for tomcat 3.2.2
> >
> > To that end I wrote a Request Interceptor that takes 2 parameters
> > called "realmProviderClass" and "setupString".
> >
> > The "realmProviderClass" is the fully-qualified class name of
> > a class which
> > implements
> > the "RealmProvider" interface which looks like the following:
> >
> > public interface RealmProvider
> > {
> > public boolean authenticate(String username, String
> > credentials) throws
> > Exception;
> > public String[] getUserRoles(String username) throws Exception;
> > public boolean initialize(String setupstring) throws Exception;
> > public void shutdown() throws Exception;
> > }
> >
> > The "setupString" parameter is passed to the initialize method of the
> > RealmProvider class
> > during context initialization.
> >
> > I thought that this might be an easy way to implement various
> > different
> > authentication schemes
> > by delegating to a "RealmProvider". One could write a
> > "SimpleRealmProvider"
> > or a "JDBCRealmProvider"
> > etc.
> >
> > Does anyone think this might be a good idea for inclusion in tomcat?
> > -Mike
> >
> > ______________________
> > Mike Jennings
> > Southgate Software Ltd.
> > 250-382-6851 (ph)
> > 250-382-6800 (fax)
> > [EMAIL PROTECTED]
> >
> >