Forum Stats

  • 3,840,393 Users
  • 2,262,599 Discussions
  • 7,901,261 Comments

Discussions

SunPKCS11 in Java 9

882393
882393 Member Posts: 2
edited Sep 1, 2017 9:55AM in Java SE Early Access

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