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 @@ -149,6 +149,17 @@ public static void loadNative() {
149149 this .pkcs11ModulePath = pkcs11ModulePath ;
150150 }
151151
152+ /*
153+ * Compatibility wrapper to allow this method to work as before
154+ * when FIPS mode support is not active.
155+ */
156+ public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
157+ String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
158+ boolean omitInitialize ) throws IOException , PKCS11Exception {
159+ return getInstance (pkcs11ModulePath , functionList ,
160+ pInitArgs , omitInitialize , null );
161+ }
162+
152163 public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
153164 String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
154165 boolean omitInitialize , MethodHandle fipsKeyImporter )
You can’t perform that action at this time.
0 commit comments