> On Nov 16, 2015, at 11:46 PM, Sean Mullan <sean.mul...@oracle.com> wrote: > > Provider p = Security.getProvider("SunPKCS11"); > p.configure("/opt/bar/cfg/pkcs11.cfg");
p = p.configure("/opt/bar/cfg/pkcs11.cfg"); The spec for the method says: * Apply the supplied configuration argument to this provider instance * and return the configured provider. Note that if this provider cannot * be configured in-place, a new provider will be created and returned. * Therefore, callers should always use the returned provider. --Max