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
This commit is contained in:
Daniel Henninger 2007-12-27 16:17:58 +00:00 committed by dhenninger
parent 5c92ced702
commit a0021b17be
1 changed files with 1 additions and 1 deletions

View File

@ -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);