From a0dbae929024543d8458e90f04b4030e55175426 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Thu, 14 Dec 2017 18:53:39 +0100 Subject: [PATCH] Clean up Signed-off-by: Mario Danic --- .../java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java b/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java index 85530ae27..16670a89a 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java +++ b/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java @@ -92,7 +92,7 @@ public class MagicTrustManager implements X509TrustManager { return new MagicHostnameVerifier(defaultHostNameVerifier); } - public boolean isCertInTrustStore(X509Certificate[] x509Certificates, String s) { + private boolean isCertInTrustStore(X509Certificate[] x509Certificates, String s) { if (systemTrustManager != null) { X509Certificate x509Certificate = x509Certificates[0]; try { @@ -164,7 +164,7 @@ public class MagicTrustManager implements X509TrustManager { private static final String TAG = "MagicHostnameVerifier"; private HostnameVerifier defaultHostNameVerifier; - public MagicHostnameVerifier(HostnameVerifier defaultHostNameVerifier) { + private MagicHostnameVerifier(HostnameVerifier defaultHostNameVerifier) { this.defaultHostNameVerifier = defaultHostNameVerifier; }