1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Initialize keytsoreType with KeyStore.getDefaultType()

This commit is contained in:
Florian Schmaus 2017-11-22 22:34:56 +01:00
parent 853324a998
commit 32f681c6e5

View file

@ -18,6 +18,7 @@
package org.jivesoftware.smack; package org.jivesoftware.smack;
import java.net.InetAddress; import java.net.InetAddress;
import java.security.KeyStore;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -505,7 +506,7 @@ public abstract class ConnectionConfiguration {
private SecurityMode securityMode = SecurityMode.ifpossible; private SecurityMode securityMode = SecurityMode.ifpossible;
private DnssecMode dnssecMode = DnssecMode.disabled; private DnssecMode dnssecMode = DnssecMode.disabled;
private String keystorePath = System.getProperty("javax.net.ssl.keyStore"); private String keystorePath = System.getProperty("javax.net.ssl.keyStore");
private String keystoreType = "jks"; private String keystoreType = KeyStore.getDefaultType();
private String pkcs11Library = "pkcs11.config"; private String pkcs11Library = "pkcs11.config";
private SSLContext customSSLContext; private SSLContext customSSLContext;
private String[] enabledSSLProtocols; private String[] enabledSSLProtocols;