Skip to content

Commit 5c8832f

Browse files
committed
RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage (#8)
Reviewed-by: mbalao
1 parent 41cfe83 commit 5c8832f

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
@@ -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)

0 commit comments

Comments
 (0)