Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java')
-rw-r--r--src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java b/src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java
index 5907cfa..0a66727 100644
--- a/src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java
+++ b/src/main/java/se/lublin/humla/net/HumlaSSLSocketFactory.java
@@ -41,9 +41,9 @@ import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
-import se.lublin.humla.Constants;
-
public class HumlaSSLSocketFactory {
+ private static final String TAG = HumlaSSLSocketFactory.class.getName();
+
private SSLContext mContext;
private HumlaTrustManagerWrapper mTrustWrapper;
@@ -61,10 +61,10 @@ public class HumlaSSLSocketFactory {
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(trustStore);
mTrustWrapper = new HumlaTrustManagerWrapper((X509TrustManager) tmf.getTrustManagers()[0]);
- Log.i(Constants.TAG, "Using custom trust store " + trustStorePath + " with system trust store");
+ Log.i(TAG, "Using custom trust store " + trustStorePath + " with system trust store");
} else {
mTrustWrapper = new HumlaTrustManagerWrapper(null);
- Log.i(Constants.TAG, "Using system trust store");
+ Log.i(TAG, "Using system trust store");
}
mContext.init(kmf.getKeyManagers(), new TrustManager[] { mTrustWrapper }, null);