Skip to content

Commit 1e55dec

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

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

0 commit comments

Comments
 (0)