[daisy] Custom Authentication + External Jars
Bruno Dumon
bruno at outerthought.org
Thu Oct 4 11:15:15 CDT 2007
On Thu, 2007-10-04 at 02:28 -0700, edzheyn wrote:
> Hi all,
>
> we are trying to implement our own Authentication Scheme using signature
> validation. The signature is being validated using both MD5 and RSA crypto
> algorithms. For the implementations of the crypto algorithms we are using
> the bouncy castle java APIs (version 1.33).
> We import our authentication module to the plugins of the repository server
> without a problem but when we try to authenticate ourselves we get the
> following error:
>
> The Bouncy Castle security provider could not be loaded. Ensure that you
> have bcprov-jdk14-133.jar is present in Tomcat's common/lib directory.
> [btpool0-3] ERROR org.mortbay.log - EXCEPTION
> java.lang.ExceptionInInitializerError
> .........
>
> Could anyone give us a tip how we can reference the bouncy castle jar. If we
> need to use classloader.xml, how it should look like and where to copy the
> jar file?
Put the jar file in
<DAISY_HOME>/lib/bouncycaste/jars/bouncycastle-<version>.jar
(The lib dir is a Maven-style repository, in case you would be familiar
with that.)
Then create a classloader.xml like:
<classloader>
<classpath>
<artifact groupId="bouncycastle" artifactId="bouncycastle" version="the version number"/>
</classpath>
</classloader>
Rebuild the plugin so that the classloader.xml is in the plugin jar, and
that should be all.
It is currently not very nice that the jar needs to be added to the
<DAISY_HOME>/lib dir, there's already a jira issue [1] which covers
this.
[1] http://issues.cocoondev.org/browse/DSY-526
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list