what-the-bank/sources/com/facetec/sdk/jj.java

157 lines
5.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.facetec.sdk.kc;
import java.net.Proxy;
import java.net.ProxySelector;
import java.util.List;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
/* loaded from: classes.dex */
public final class jj {
public final List<jt> a;
public final Proxy b;
final SSLSocketFactory c;
private kc d;
public SocketFactory e;
private jf f;
private ProxySelector g;
private HostnameVerifier h;
private List<kd> i;
private ju j;
private jk l;
public jj(String str, int i, ju juVar, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, jk jkVar, jf jfVar, Proxy proxy, List<kd> list, List<jt> list2, ProxySelector proxySelector) {
kc.c cVar = new kc.c();
String str2 = sSLSocketFactory != null ? "https" : "http";
if (str2.equalsIgnoreCase("http")) {
cVar.a = "http";
} else if (str2.equalsIgnoreCase("https")) {
cVar.a = "https";
} else {
throw new IllegalArgumentException("unexpected scheme: ".concat(str2));
}
if (str == null) {
throw new NullPointerException("host == null");
}
String d = kc.c.d(str, 0, str.length());
if (d == null) {
throw new IllegalArgumentException("unexpected host: ".concat(String.valueOf(str)));
}
cVar.b = d;
if (i <= 0 || i > 65535) {
throw new IllegalArgumentException("unexpected port: ".concat(String.valueOf(i)));
}
cVar.e = i;
this.d = cVar.b();
if (juVar == null) {
throw new NullPointerException("dns == null");
}
this.j = juVar;
if (socketFactory == null) {
throw new NullPointerException("socketFactory == null");
}
this.e = socketFactory;
if (jfVar == null) {
throw new NullPointerException("proxyAuthenticator == null");
}
this.f = jfVar;
if (list == null) {
throw new NullPointerException("protocols == null");
}
this.i = km.e(list);
if (list2 == null) {
throw new NullPointerException("connectionSpecs == null");
}
this.a = km.e(list2);
if (proxySelector == null) {
throw new NullPointerException("proxySelector == null");
}
this.g = proxySelector;
this.b = proxy;
this.c = sSLSocketFactory;
this.h = hostnameVerifier;
this.l = jkVar;
}
public final boolean equals(Object obj) {
if (!(obj instanceof jj)) {
return false;
}
jj jjVar = (jj) obj;
return this.d.equals(jjVar.d) && d(jjVar);
}
public final int hashCode() {
int hashCode = this.d.hashCode();
int hashCode2 = this.j.hashCode();
int hashCode3 = this.f.hashCode();
int hashCode4 = this.i.hashCode();
int hashCode5 = this.a.hashCode();
int hashCode6 = this.g.hashCode();
Proxy proxy = this.b;
int hashCode7 = proxy != null ? proxy.hashCode() : 0;
SSLSocketFactory sSLSocketFactory = this.c;
int hashCode8 = sSLSocketFactory != null ? sSLSocketFactory.hashCode() : 0;
HostnameVerifier hostnameVerifier = this.h;
int hashCode9 = hostnameVerifier != null ? hostnameVerifier.hashCode() : 0;
jk jkVar = this.l;
return ((((((((((((((((((hashCode + 527) * 31) + hashCode2) * 31) + hashCode3) * 31) + hashCode4) * 31) + hashCode5) * 31) + hashCode6) * 31) + hashCode7) * 31) + hashCode8) * 31) + hashCode9) * 31) + (jkVar != null ? jkVar.hashCode() : 0);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean d(jj jjVar) {
return this.j.equals(jjVar.j) && this.f.equals(jjVar.f) && this.i.equals(jjVar.i) && this.a.equals(jjVar.a) && this.g.equals(jjVar.g) && km.b(this.b, jjVar.b) && km.b(this.c, jjVar.c) && km.b(this.h, jjVar.h) && km.b(this.l, jjVar.l) && b().j() == jjVar.b().j();
}
public final String toString() {
StringBuilder sb = new StringBuilder("Address{");
sb.append(this.d.i());
sb.append(":");
sb.append(this.d.j());
if (this.b != null) {
sb.append(", proxy=");
sb.append(this.b);
} else {
sb.append(", proxySelector=");
sb.append(this.g);
}
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
public final HostnameVerifier j() {
return this.h;
}
public final SSLSocketFactory i() {
return this.c;
}
public final jk f() {
return this.l;
}
public final ju e() {
return this.j;
}
public final jf d() {
return this.f;
}
public final ProxySelector c() {
return this.g;
}
public final kc b() {
return this.d;
}
public final List<kd> a() {
return this.i;
}
}