Skip to content

Commit e9772be

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

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
@@ -153,6 +153,17 @@ public static void loadNative() {
153153
this.pkcs11ModulePath = pkcs11ModulePath;
154154
}
155155

156+
/*
157+
* Compatibility wrapper to allow this method to work as before
158+
* when FIPS mode support is not active.
159+
*/
160+
public static synchronized PKCS11 getInstance(String pkcs11ModulePath,
161+
String functionList, CK_C_INITIALIZE_ARGS pInitArgs,
162+
boolean omitInitialize) throws IOException, PKCS11Exception {
163+
return getInstance(pkcs11ModulePath, functionList,
164+
pInitArgs, omitInitialize, null, null);
165+
}
166+
156167
public static synchronized PKCS11 getInstance(String pkcs11ModulePath,
157168
String functionList, CK_C_INITIALIZE_ARGS pInitArgs,
158169
boolean omitInitialize, MethodHandle fipsKeyImporter,

0 commit comments

Comments
 (0)