Skip to content

Commit 4479766

Browse files
committed
RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage (openjdk#8)
Reviewed-by: mbalao
1 parent 93ec909 commit 4479766

File tree

1 file changed

+11
-0
lines changed
  • src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper

1 file changed

+11
-0
lines changed

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper/PKCS11.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)