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