How to finalize SunPKCS11 Provider after it is initialized?

前端 未结 3 2001
庸人自扰
庸人自扰 2020-12-16 19:38

I have initialized the SunPKCS11 provider by:

Provider provider = new sun.security.pkcs11.SunPKCS11(\"path_to_pkcs11.cfg\");
Security.addProvider(provider);
         


        
3条回答
  •  臣服心动
    2020-12-16 19:46

    Your are getting this exception because once the program get executed for the first time the values get retained with the process id in java.So to resolve this make it as a jar file and run as batch file

提交回复
热议问题