From a0021b17be845073c9cfd6f7aa18e897e42f60d1 Mon Sep 17 00:00:00 2001 From: Daniel Henninger Date: Thu, 27 Dec 2007 16:17:58 +0000 Subject: [PATCH] We're using an inputstream now, not a string. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@9690 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/XMPPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);