mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Changing PKCS to PKCS11 and config to library for proper terminology.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@9692 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
a0021b17be
commit
0a5229f7ad
2 changed files with 11 additions and 11 deletions
|
@ -1317,7 +1317,7 @@ public class XMPPConnection {
|
|||
else if(configuration.getKeystoreType().equals("PKCS11")) {
|
||||
try {
|
||||
Constructor c = Class.forName("sun.security.pkcs11.SunPKCS11").getConstructor(InputStream.class);
|
||||
String pkcs11Config = "name = SmartCard\nlibrary = "+configuration.getPKCSConfig();
|
||||
String pkcs11Config = "name = SmartCard\nlibrary = "+configuration.getPKCS11Library();
|
||||
ByteArrayInputStream config = new ByteArrayInputStream(pkcs11Config.getBytes());
|
||||
Provider p = (Provider)c.newInstance(config);
|
||||
Security.addProvider(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue