diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index a2b7a4de8..d6d1e0f39 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -1316,7 +1316,7 @@ public class XMPPConnection { } else if(configuration.getKeystoreType().equals("PKCS11")) { try { - Constructor c = Class.forName("sun.security.pkcs11.SunPKCS11").getConstructor(String.class); + Constructor c = Class.forName("sun.security.pkcs11.SunPKCS11").getConstructor(InputStream.class); String pkcs11Config = "name = SmartCard\nlibrary = "+configuration.getPKCSConfig(); ByteArrayInputStream config = new ByteArrayInputStream(pkcs11Config.getBytes()); Provider p = (Provider)c.newInstance(config);