正在查看: 万能钥匙 v1.1.23 应用的 j.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 j.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package xk0;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.SocketAddress;
import java.net.SocketException;
import java.net.URI;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.n;
import mg0.o;
import mg0.p;
import mg0.u;
import sk0.g0;
import sk0.r;
import sk0.v;
@Metadata(d1 = {"\u0000j\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 /2\u00020\u0001:\u0002\r\u0019B'\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\r\u001a\u00020\fH\u0086\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0010\u0010\u0010\u001a\u00020\u000fH\u0086\u0002¢\u0006\u0004\b\u0010\u0010\u0011J!\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0013\u001a\u00020\u00122\b\u0010\u0015\u001a\u0004\u0018\u00010\u0014H\u0002¢\u0006\u0004\b\u0017\u0010\u0018J\u000f\u0010\u0019\u001a\u00020\fH\u0002¢\u0006\u0004\b\u0019\u0010\u000eJ\u000f\u0010\u001a\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u001a\u0010\u001bJ\u0017\u0010\u001c\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u001c\u0010\u001dR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\u001eR\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010\u001fR\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0010\u0010 R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001a\u0010!R\u001c\u0010$\u001a\b\u0012\u0004\u0012\u00020\u00140\"8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001c\u0010#R\u0016\u0010'\u001a\u00020%8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010&R\u001c\u0010*\u001a\b\u0012\u0004\u0012\u00020(0\"8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010#R\u001a\u0010.\u001a\b\u0012\u0004\u0012\u00020,0+8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b-\u0010#¨\u00060"}, d2 = {"Lxk0/j;", "", "Lsk0/a;", "address", "Lxk0/h;", "routeDatabase", "Lsk0/e;", "call", "Lsk0/r;", "eventListener", "<init>", "(Lsk0/a;Lxk0/h;Lsk0/e;Lsk0/r;)V", "", "a", "()Z", "Lxk0/j$b;", "c", "()Lxk0/j$b;", "Lsk0/v;", "url", "Ljava/net/Proxy;", "proxy", "Llg0/e0;", "f", "(Lsk0/v;Ljava/net/Proxy;)V", "b", "d", "()Ljava/net/Proxy;", "e", "(Ljava/net/Proxy;)V", "Lsk0/a;", "Lxk0/h;", "Lsk0/e;", "Lsk0/r;", "", "Ljava/util/List;", "proxies", "", "I", "nextProxyIndex", "Ljava/net/InetSocketAddress;", "g", "inetSocketAddresses", "", "Lsk0/g0;", "h", "postponedRoutes", "i", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class j {
public static final Companion INSTANCE = new Companion(null);
public final sk0.a address;
public final h routeDatabase;
public final sk0.e call;
public final r eventListener;
public List<? extends Proxy> proxies;
public int nextProxyIndex;
public List<? extends InetSocketAddress> inetSocketAddresses;
public final List<g0> postponedRoutes;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u0015\u0010\b\u001a\u00020\u0005*\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\t"}, d2 = {"Lxk0/j$a;", "", "<init>", "()V", "Ljava/net/InetSocketAddress;", "", "a", "(Ljava/net/InetSocketAddress;)Ljava/lang/String;", "socketHost", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final String a(InetSocketAddress inetSocketAddress) {
n.i(inetSocketAddress, "<this>");
InetAddress address = inetSocketAddress.getAddress();
if (address == null) {
String hostName = inetSocketAddress.getHostName();
n.h(hostName, "hostName");
return hostName;
}
String hostAddress = address.getHostAddress();
n.h(hostAddress, "address.hostAddress");
return hostAddress;
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0015\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002¢\u0006\u0004\b\u0005\u0010\u0006J\u0010\u0010\b\u001a\u00020\u0007H\u0086\u0002¢\u0006\u0004\b\b\u0010\tJ\u0010\u0010\n\u001a\u00020\u0003H\u0086\u0002¢\u0006\u0004\b\n\u0010\u000bR\u001d\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006¢\u0006\f\n\u0004\b\f\u0010\r\u001a\u0004\b\f\u0010\u000eR\u0016\u0010\u0011\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\b\u0010\u0010¨\u0006\u0012"}, d2 = {"Lxk0/j$b;", "", "", "Lsk0/g0;", "routes", "<init>", "(Ljava/util/List;)V", "", "b", "()Z", "c", "()Lsk0/g0;", "a", "Ljava/util/List;", "()Ljava/util/List;", "", "I", "nextRouteIndex", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class b {
public final List<g0> routes;
public int nextRouteIndex;
public b(List<g0> routes) {
n.i(routes, "routes");
this.routes = routes;
}
public final List<g0> a() {
return this.routes;
}
public final boolean b() {
return this.nextRouteIndex < this.routes.size();
}
public final g0 c() {
if (!b()) {
throw new NoSuchElementException();
}
List<g0> list = this.routes;
int i = this.nextRouteIndex;
this.nextRouteIndex = i + 1;
return list.get(i);
}
}
public j(sk0.a address, h routeDatabase, sk0.e call, r eventListener) {
n.i(address, "address");
n.i(routeDatabase, "routeDatabase");
n.i(call, "call");
n.i(eventListener, "eventListener");
this.address = address;
this.routeDatabase = routeDatabase;
this.call = call;
this.eventListener = eventListener;
this.proxies = p.j();
this.inetSocketAddresses = p.j();
this.postponedRoutes = new ArrayList();
f(address.getUrl(), address.getProxy());
}
public static final List<Proxy> g(Proxy proxy, v vVar, j jVar) {
if (proxy != null) {
return o.d(proxy);
}
URI t = vVar.t();
if (t.getHost() == null) {
return tk0.e.w(Proxy.NO_PROXY);
}
List<Proxy> proxiesOrNull = jVar.address.getProxySelector().select(t);
List<Proxy> list = proxiesOrNull;
if (list == null || list.isEmpty()) {
return tk0.e.w(Proxy.NO_PROXY);
}
n.h(proxiesOrNull, "proxiesOrNull");
return tk0.e.V(proxiesOrNull);
}
public final boolean a() {
return b() || !this.postponedRoutes.isEmpty();
}
public final boolean b() {
return this.nextProxyIndex < this.proxies.size();
}
public final b c() throws IOException {
if (!a()) {
throw new NoSuchElementException();
}
ArrayList arrayList = new ArrayList();
while (b()) {
Proxy d = d();
Iterator<? extends InetSocketAddress> it = this.inetSocketAddresses.iterator();
while (it.hasNext()) {
g0 g0Var = new g0(this.address, d, it.next());
if (this.routeDatabase.c(g0Var)) {
this.postponedRoutes.add(g0Var);
} else {
arrayList.add(g0Var);
}
}
if (!arrayList.isEmpty()) {
break;
}
}
if (arrayList.isEmpty()) {
u.A(arrayList, this.postponedRoutes);
this.postponedRoutes.clear();
}
return new b(arrayList);
}
public final Proxy d() throws IOException {
if (b()) {
List<? extends Proxy> list = this.proxies;
int i = this.nextProxyIndex;
this.nextProxyIndex = i + 1;
Proxy proxy = list.get(i);
e(proxy);
return proxy;
}
throw new SocketException("No route to " + this.address.getUrl().getHost() + "; exhausted proxy configurations: " + this.proxies);
}
public final void e(Proxy proxy) throws IOException {
String host;
int port;
List<InetAddress> a;
ArrayList arrayList = new ArrayList();
this.inetSocketAddresses = arrayList;
if (proxy.type() == Proxy.Type.DIRECT || proxy.type() == Proxy.Type.SOCKS) {
host = this.address.getUrl().getHost();
port = this.address.getUrl().getPort();
} else {
SocketAddress proxyAddress = proxy.address();
if (!(proxyAddress instanceof InetSocketAddress)) {
throw new IllegalArgumentException(("Proxy.address() is not an InetSocketAddress: " + proxyAddress.getClass()).toString());
}
Companion companion = INSTANCE;
n.h(proxyAddress, "proxyAddress");
InetSocketAddress inetSocketAddress = (InetSocketAddress) proxyAddress;
host = companion.a(inetSocketAddress);
port = inetSocketAddress.getPort();
}
if (1 > port || port >= 65536) {
throw new SocketException("No route to " + host + ':' + port + "; port is out of range");
}
if (proxy.type() == Proxy.Type.SOCKS) {
arrayList.add(InetSocketAddress.createUnresolved(host, port));
return;
}
if (tk0.e.i(host)) {
a = o.d(InetAddress.getByName(host));
} else {
this.eventListener.n(this.call, host);
a = this.address.getDns().a(host);
if (a.isEmpty()) {
throw new UnknownHostException(this.address.getDns() + " returned no addresses for " + host);
}
this.eventListener.m(this.call, host, a);
}
Iterator<InetAddress> it = a.iterator();
while (it.hasNext()) {
arrayList.add(new InetSocketAddress(it.next(), port));
}
}
public final void f(v url, Proxy proxy) {
this.eventListener.p(this.call, url);
List<Proxy> g = g(proxy, url, this);
this.proxies = g;
this.nextProxyIndex = 0;
this.eventListener.o(this.call, url, g);
}
}