AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SunPKCS11

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Tim Ward
Guest





PostPosted: Fri Jun 02, 2006 1:10 pm    Post subject: SunPKCS11 Reply with quote



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?

Oh, and when it says:

=================

library

pathname of PKCS#11 implementation

This is the full pathname (including extension) of the PKCS#11
implementation; the format of the pathname is platform dependent. For
example, /opt/foo/lib/libpkcs11.so might be the pathname of a PKCS#11
implementation on Solaris and Linux while C:\foo\mypkcs11.dll might be one
on Windows.

=================

I hope it's lying and that the full pathname is not required and that
"xxx.dll" will do fine if the DLL is in the Windows system directory? Or do
I really have to write some code to ask Java where the Windows system
directory is and build the pathname?

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.