This commit is contained in:
Michal Kepkowski
2016-04-06 19:25:10 +02:00
parent d9988a8cda
commit 26bfe06d80
2 changed files with 6 additions and 8 deletions

View File

@@ -28,7 +28,6 @@ import java.io.IOException;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import java.util.concurrent.TimeUnit;
/**
* Wrapper for Keybase Lib

View File

@@ -44,12 +44,6 @@ import javax.net.ssl.TrustManagerFactory;
public class TlsHelper {
public static class TlsHelperException extends Exception {
public TlsHelperException(Exception e) {
super(e);
}
}
private static Map<String, byte[]> sPinnedCertificates = new HashMap<>();
/**
@@ -87,7 +81,6 @@ public class TlsHelper {
for (String host : sPinnedCertificates.keySet()) {
if (url.getHost().endsWith(host)) {
return pinCertificate(sPinnedCertificates.get(host));
//return true;
}
}
}
@@ -138,4 +131,10 @@ public class TlsHelper {
}
}
public static class TlsHelperException extends Exception {
public TlsHelperException(Exception e) {
super(e);
}
}
}