accessing provider's function
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   abdul_muhaimin
Posted On:   Thursday, July 21, 2005 12:02 AM

i've got a java class: public class Encrypt{ public static void main (String args[]) throws Exception { String configName = "C:/pkcs11.cfg"; Provider p = new sun.security.pkcs11.SunPKCS11(configName); Security.addProvider(p); System.out.println("test"); char[] pin = {'1','2','3','4','5','6','7','8'}; KeyStore ks = KeyStore.getInstance("PKCS11",p); ks.load(null, pin); } } and in the c:/pkcs11.cfg configuration file: name = rainbow_token library = c:WINNTsystem32DKCK201.dll slotListIndex=4 in the DKCK201.dll, there's a function C_SetPin. How do i use it? I need it t   More>>

i've got a java class:

			
public class Encrypt{
public static void main (String args[]) throws
Exception {

String configName = "C:/pkcs11.cfg";
Provider p = new
sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);

System.out.println("test");
char[] pin = {'1','2','3','4','5','6','7','8'};
KeyStore ks = KeyStore.getInstance("PKCS11",p);
ks.load(null, pin);
}
}


and in the c:/pkcs11.cfg configuration file:
name = rainbow_token
library = c:WINNTsystem32DKCK201.dll
slotListIndex=4

in the DKCK201.dll, there's a function C_SetPin. How
do i use it? I need it to change the keystore
password.

any help is greatly appreciated. thanks a lot.    <<Less
About | Sitemap | Contact