package o4;

/* JADX INFO: loaded from: classes3.dex */
public final class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final boolean f21830a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public String[] f21831b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public String[] f21832c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f21833d;

    public b(boolean z6) {
        this.f21830a = z6;
    }

    public final void a(EnumC2638a... enumC2638aArr) {
        if (!this.f21830a) {
            throw new IllegalStateException("no cipher suites for cleartext connections");
        }
        String[] strArr = new String[enumC2638aArr.length];
        for (int i6 = 0; i6 < enumC2638aArr.length; i6++) {
            strArr[i6] = enumC2638aArr[i6].f21829a;
        }
        this.f21831b = strArr;
    }

    public final void b(n... nVarArr) {
        if (!this.f21830a) {
            throw new IllegalStateException("no TLS versions for cleartext connections");
        }
        if (nVarArr.length == 0) {
            throw new IllegalArgumentException("At least one TlsVersion is required");
        }
        String[] strArr = new String[nVarArr.length];
        for (int i6 = 0; i6 < nVarArr.length; i6++) {
            strArr[i6] = nVarArr[i6].f21884a;
        }
        this.f21832c = strArr;
    }

    public b(c cVar) {
        this.f21830a = cVar.f21835a;
        this.f21831b = cVar.f21836b;
        this.f21832c = cVar.f21837c;
        this.f21833d = cVar.f21838d;
    }
}
