I am trying to asccess pkcs#11 in java but i am getting this error, while tryig to use or while importing
This is the code sample
Class<?> sunPKCS11Class = Class.forName("sun.security.pkcs11.SunPKCS11");
Provider provider = new sun.security.pkcs11.SunPKCS11("softhsm.cfg");
Security.addProvider(provider);
KeyStore keyStore = KeyStore.getInstance("PKCS11", provider);