Given that the PKCS#11 provider (SunPKCS11) is in the sun package, will that class be available or will there be a standardized API for adding the provider dynamically?
Dynamically instantiating the provider is described in [1] and looks like this:
String configName = "/opt/bar/cfg/pkcs11.cfg";
Provider p = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);
[1] Section 2.2 Configuration, JDK 8 PKCS#11 Reference Guide
Cheers,
Markus