mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
Changed host from static to instance. Should help to prevent conflicts with multiple accounts.
This commit is contained in:
parent
ca9d220a52
commit
61aba8fa78
@ -27,8 +27,6 @@ public final class TrustManagerFactory {
|
||||
private static X509TrustManager unsecureTrustManager;
|
||||
private static X509TrustManager localTrustManager;
|
||||
|
||||
private static SecureX509TrustManager secureTrustManager;
|
||||
|
||||
private static X509Certificate[] lastCertChain = null;
|
||||
|
||||
private static File keyStoreFile;
|
||||
@ -50,21 +48,21 @@ public final class TrustManagerFactory {
|
||||
}
|
||||
|
||||
private static class SecureX509TrustManager implements X509TrustManager {
|
||||
private static String mHost;
|
||||
private String mHost;
|
||||
private static SecureX509TrustManager me;
|
||||
|
||||
private SecureX509TrustManager() {
|
||||
}
|
||||
|
||||
public static X509TrustManager getInstance(String host) {
|
||||
mHost = host;
|
||||
if (me == null) {
|
||||
me = new SecureX509TrustManager();
|
||||
}
|
||||
me.mHost = host;
|
||||
return me;
|
||||
}
|
||||
|
||||
public static void setHost(String host){
|
||||
public void setHost(String host){
|
||||
mHost = host;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user