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 @@ -170,6 +170,17 @@ public CK_VERSION getVersion() {
170170 return version ;
171171 }
172172
173+ /*
174+ * Compatibility wrapper to allow this method to work as before
175+ * when FIPS mode support is not active.
176+ */
177+ public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
178+ String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
179+ boolean omitInitialize ) throws IOException , PKCS11Exception {
180+ return getInstance (pkcs11ModulePath , functionList ,
181+ pInitArgs , omitInitialize , null , null );
182+ }
183+
173184 public static synchronized PKCS11 getInstance (String pkcs11ModulePath ,
174185 String functionList , CK_C_INITIALIZE_ARGS pInitArgs ,
175186 boolean omitInitialize , MethodHandle fipsKeyImporter ,
You can’t perform that action at this time.
0 commit comments