File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,17 @@ public CK_VERSION getVersion() {
177177 return version ;
178178 }
179179
180+ /*
181+ * Compatibility wrapper to allow this method to work as before
182+ * when FIPS mode support is not active.
183+ */
184+ public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
185+ String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
186+ boolean omitInitialize ) throws IOException , PKCS11Exception {
187+ return getInstance (pkcs11ModulePath , functionList ,
188+ pInitArgs , omitInitialize , null , null );
189+ }
190+
180191 public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
181192 String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
182193 boolean omitInitialize , MethodHandle fipsKeyImporter ,
You can’t perform that action at this time.
0 commit comments