Added a Wiki page, in case anybody needs that in the future: http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication
On 22.02.2006 18:33:16 Jeremias Maerki wrote: > I think there's an even easier way to do this, and it's probably the > better one. I've attached a simple class (MyAuthenticator.java) which > you can adjust to your purposes. You can inspect the parameters for the > password authentication and return a username and password depending on > those values. FOP (or rather Java's java.net.URL subsystem) will > use your MyAuthenticator class as soon as you call it's "install()" > method somewhere in the initialization code of your > application/servlet/whatever. > > Here's where I got the idea from: > http://www.javaworld.com/javaworld/javatips/jw-javatip46.html > > No need for a complicated URIResolver using Jakarta Commons HttpClient > or something like that. :-) Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
