> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2003 10:01 AM > To: [EMAIL PROTECTED] > Subject: Authentication FW: auth. by java class? > > > Hi again, > I tested the authentication fw in cocoon 2.1.2. In the user's > manual is said > that - as the authentication resource - a java class could be used... > Can You directly call a java class in a pipeline (is that what > the resource > protocol is meant for?). How has the class an its returning values to be > look like?
Using a class is an alternative for using a pipeline. You can define this class in the handler configuration as an attribute "authenticator" of the "authentication" element, e.g. <authentication authenticator="mypkg.myclass"/> This class must conform to the Authenticator interface and provides a method that tries to authenticate a User and delivers XML that is stored in the session on success. So, the behaviour is similar to the pipeline. Carsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]