Skip to content

Commit

Permalink
Fixed bug that PKCS#11 in combination with Java 9 caused an error
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikramer committed Nov 27, 2017
1 parent 26ccd4c commit 476590d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kse/src/org/kse/gui/dialogs/DOpenPkcs11KeyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private void okPressed() {
pkcs11ConfigSettings = "--" + pkcs11ConfigSettings;
// p11Provider.configure(pkcs11ConfigSettings);
Method method = Provider.class.getMethod("configure", String.class);
method.invoke(p11Provider, pkcs11ConfigSettings);
p11Provider = (Provider) method.invoke(p11Provider, pkcs11ConfigSettings);
} else {
Class<?> cl = Class.forName("sun.security.pkcs11.SunPKCS11");
Constructor<?> cons = cl.getConstructor(InputStream.class);
Expand Down

0 comments on commit 476590d

Please sign in to comment.