Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 o.java 源代码,内容仅作参考
package com.monetization.ads.exo.drm;
import android.net.Uri;
import android.text.TextUtils;
import com.google.common.net.HttpHeaders;
import com.monetization.ads.exo.drm.m;
import com.yandex.mobile.ads.impl.dn1;
import com.yandex.mobile.ads.impl.fi;
import com.yandex.mobile.ads.impl.gc;
import com.yandex.mobile.ads.impl.is;
import com.yandex.mobile.ads.impl.nh1;
import com.yandex.mobile.ads.impl.q50;
import com.yandex.mobile.ads.impl.qh0;
import com.yandex.mobile.ads.impl.sq;
import com.yandex.mobile.ads.impl.uq;
import com.yandex.mobile.ads.impl.wq;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public final class o implements p {
private final sq.a f8858a;
private final String f8859b;
private final boolean f8860c;
private final HashMap f8861d;
public o(String str, boolean z6, is.a aVar) {
gc.a((z6 && TextUtils.isEmpty(str)) ? false : true);
this.f8858a = aVar;
this.f8859b = str;
this.f8860c = z6;
this.f8861d = new HashMap();
}
private static byte[] a(sq.a aVar, String str, byte[] bArr, Map<String, String> map) {
Map<String, List<String>> map2;
List<String> list;
String str2;
nh1 nh1Var = new nh1(aVar.a());
wq a8 = new wq.a().b(str).a(map).b().a(bArr).a(1).a();
int i10 = 0;
int i11 = 0;
wq wqVar = a8;
while (true) {
try {
uq uqVar = new uq(nh1Var, wqVar);
try {
int i12 = dn1.f13058a;
byte[] bArr2 = new byte[4096];
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
while (true) {
int read = uqVar.read(bArr2);
if (read == -1) {
byte[] byteArray = byteArrayOutputStream.toByteArray();
dn1.a((Closeable) uqVar);
return byteArray;
}
byteArrayOutputStream.write(bArr2, i10, read);
}
} catch (q50 e10) {
int i13 = e10.f17543d;
if ((((i13 == 307 || i13 == 308) && i11 < 5) ? 1 : i10) != 0 && (map2 = e10.f17544e) != null && (list = map2.get("Location")) != null && !list.isEmpty()) {
str2 = list.get(i10);
if (str2 != null) {
throw e10;
}
i11++;
wqVar = wqVar.a().b(str2).a();
dn1.a((Closeable) uqVar);
}
str2 = null;
if (str2 != null) {
}
}
} catch (Exception e11) {
Uri g10 = nh1Var.g();
g10.getClass();
throw new qh0(a8, g10, nh1Var.c(), nh1Var.f(), e11);
}
}
}
public final void a(String str, String str2) {
str.getClass();
str2.getClass();
synchronized (this.f8861d) {
this.f8861d.put(str, str2);
}
}
public final byte[] a(m.d dVar) {
return a(this.f8858a, dVar.b() + "&signedRequest=" + dn1.a(dVar.a()), null, Collections.emptyMap());
}
public final byte[] a(UUID uuid, m.a aVar) {
String b6 = aVar.b();
if (this.f8860c || TextUtils.isEmpty(b6)) {
b6 = this.f8859b;
}
if (TextUtils.isEmpty(b6)) {
throw new qh0(new wq.a().a(Uri.EMPTY).a(), Uri.EMPTY, com.monetization.ads.embedded.guava.collect.q.h(), 0L, new IllegalStateException("No license URL"));
}
HashMap hashMap = new HashMap();
UUID uuid2 = fi.f13875e;
hashMap.put(HttpHeaders.CONTENT_TYPE, uuid2.equals(uuid) ? "text/xml" : fi.f13873c.equals(uuid) ? "application/json" : "application/octet-stream");
if (uuid2.equals(uuid)) {
hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense");
}
synchronized (this.f8861d) {
hashMap.putAll(this.f8861d);
}
return a(this.f8858a, b6, aVar.a(), hashMap);
}
}