Using the SVN repository of the Opensc-JAVA project
The PKCS#11 provider of the OpenSC project may be checked out using the command
svn co http://www.opensc-project.org/svn/opensc-java/trunk/pkcs11
This command creates a subdirectory pkcs11 in your current path, which contains a complete eclipse project.
Installation
In order to build the beast, try
mvn install
in the root directory. If you're not familiar with maven, try reading the information supplied at the maven homepage.
Please note, that when running main methods or JUnit tests the project you must supply the command line argument
-Djava.library.path=<opensc-java-root>/target/lib
to the java virtual machine in order to locate the jni plugin libopensc-PKCS11-0.2.so resp. opensc-PKCS11-0.2.dll
Developping opensc-PKCS11
opensc-PKCS11 comes with the necessary project files for using the SVN-tree as an eclipse project.
The file conf/eclipse/TestProvider.launch contain a complete 'Run...' configuration for the JUnit test case.
Please note, that a JCE provider has to be cryptographically signed, so might not be able to test all functionalities of the PKCS#11 provider, when you compile the source code on your own. See the file conf/keystore/README in the source tree for further details.
