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