GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5

以下内容为反编译后的 co.java 源代码,内容仅作参考


package com.yandex.metrica.impl.ob;

import android.content.Context;
import android.text.TextUtils;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import javax.net.ssl.SSLSocketFactory;

public class co {

    String f4096a;
    private String b;
    private SSLSocketFactory c;
    private fj d = new fj() {
        @Override
        public String a() {
            return co.this.b;
        }
    };

    private static class a {

        static final co f4098a = new co();
    }

    public static co a() {
        return a.f4098a;
    }

    co() {
    }

    public synchronized SSLSocketFactory b() {
        return this.c;
    }

    public synchronized boolean c() {
        return this.c != null;
    }

    private static X509Certificate d() {
        try {
            String[] a2 = com.yandex.metrica.impl.ob.a.a();
            if (a2 == null || a2.length <= 0) {
                return null;
            }
            return ex.a(a2[0]);
        } catch (Exception unused) {
            return null;
        }
    }

    public synchronized void a(Context context, String str, String str2) {
        String str3;
        if (TextUtils.isEmpty(str2)) {
            str3 = "https://certificate.mobile.yandex.net/api/v1/pins";
        } else {
            str3 = str2 + "/api/v1/pins";
        }
        boolean z = false;
        if (!TextUtils.isEmpty(str)) {
            if (!(c() && str3.equals(this.f4096a))) {
                z = true;
            }
        }
        if (z) {
            this.b = str;
            this.f4096a = str3;
            fd fdVar = new fd(this.d, true, true);
            X509Certificate d = d();
            if (d != null) {
                ArrayList arrayList = new ArrayList();
                arrayList.add(d);
                fdVar.a(this.f4096a, arrayList);
                try {
                    this.c = new ez(new ew(context, fdVar)).a().getSocketFactory();
                } catch (Exception unused) {
                }
            }
        }
    }
}