SunPKCS11

Is there any documentation of this anywhere? - all I can find is:

String configName = "/opt/bar/cfg/pkcs11.cfg";

Provider p = new sun.security.pkcs11.SunPKCS11(configName);

which is fine if the configuration file is a separate disk file but suffers from the usual problem if the configuration information has to be packaged in the application .jar.

How do I set up and configure a SunPKCS11 provider without the hassle of deploying and locating a separate disk file?

[497 byte] By [TimWarda] at [2007-10-2 21:35:46]
# 1

You mean the possibility dynamically to load different PKCS11 providers (DLL files) where you don't know their DLL files for new Smart Cards for example?

I have similar problem. For example I have a list with PKCS#11 providers and their DLL files. I can try one by one each of htem to localize which is the right driver for the current Smart Card. What will happen if the card is new and I haven't the relation between this Smart Card and DLL file (PKCS11 provider)?

If there is some way to find which PKCS11 agent is active and which is the related DLL file the problem will be solved I think.

Miroslav_Nacheva at 2007-7-14 0:49:51 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...