Skip to content

Commit c7a932d

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

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
@@ -177,6 +177,17 @@ public CK_VERSION getVersion() {
177177
return version;
178178
}
179179

180+
/*
181+
* Compatibility wrapper to allow this method to work as before
182+
* when FIPS mode support is not active.
183+
*/
184+
public static synchronized PKCS11 getInstance(String pkcs11ModulePath,
185+
String functionList, CK_C_INITIALIZE_ARGS pInitArgs,
186+
boolean omitInitialize) throws IOException, PKCS11Exception {
187+
return getInstance(pkcs11ModulePath, functionList,
188+
pInitArgs, omitInitialize, null, null);
189+
}
190+
180191
public static synchronized PKCS11 getInstance(String pkcs11ModulePath,
181192
String functionList, CK_C_INITIALIZE_ARGS pInitArgs,
182193
boolean omitInitialize, MethodHandle fipsKeyImporter,

0 commit comments

Comments
 (0)