Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 o.java 源代码,内容仅作参考
package com.monetization.ads.exo.drm;
import android.net.Uri;
import android.text.TextUtils;
import com.monetization.ads.embedded.guava.collect.q;
import com.monetization.ads.exo.drm.m;
import com.yandex.mobile.ads.impl.gr;
import com.yandex.mobile.ads.impl.jh;
import com.yandex.mobile.ads.impl.kf0;
import com.yandex.mobile.ads.impl.ld1;
import com.yandex.mobile.ads.impl.nb;
import com.yandex.mobile.ads.impl.qp;
import com.yandex.mobile.ads.impl.sp;
import com.yandex.mobile.ads.impl.up;
import com.yandex.mobile.ads.impl.x30;
import com.yandex.mobile.ads.impl.zi1;
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 qp.a f8975a;
private final String f8976b;
private final boolean c;
private final HashMap d;
public o(String str, boolean z, gr.a aVar) {
nb.a((z && TextUtils.isEmpty(str)) ? false : true);
this.f8975a = aVar;
this.f8976b = str;
this.c = z;
this.d = new HashMap();
}
private static byte[] a(qp.a aVar, String str, byte[] bArr, Map<String, String> map) throws kf0 {
Map<String, List<String>> map2;
List<String> list;
String str2;
ld1 ld1Var = new ld1(aVar.a());
up a2 = new up.a().b(str).a(map).b().a(bArr).a(1).a();
int i = 0;
up upVar = a2;
int i2 = 0;
while (true) {
try {
sp spVar = new sp(ld1Var, upVar);
try {
int i3 = zi1.f15428a;
byte[] bArr2 = new byte[4096];
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
while (true) {
int read = spVar.read(bArr2);
if (read == -1) {
byte[] byteArray = byteArrayOutputStream.toByteArray();
zi1.a((Closeable) spVar);
return byteArray;
}
byteArrayOutputStream.write(bArr2, i, read);
}
} catch (x30 e) {
int i4 = e.d;
if (((i4 == 307 || i4 == 308) && i2 < 5) && (map2 = e.e) != null && (list = map2.get("Location")) != null && !list.isEmpty()) {
str2 = list.get(i);
if (str2 != null) {
throw e;
}
i2++;
upVar = upVar.a().b(str2).a();
zi1.a((Closeable) spVar);
}
str2 = null;
if (str2 != null) {
}
}
} catch (Exception e2) {
Uri g = ld1Var.g();
g.getClass();
throw new kf0(a2, g, ld1Var.c(), ld1Var.f(), e2);
}
}
}
public final void a(String str, String str2) {
str.getClass();
str2.getClass();
synchronized (this.d) {
this.d.put(str, str2);
}
}
public final byte[] a(m.d dVar) throws kf0 {
return a(this.f8975a, dVar.b() + "&signedRequest=" + zi1.a(dVar.a()), null, Collections.emptyMap());
}
public final byte[] a(UUID uuid, m.a aVar) throws kf0 {
String b2 = aVar.b();
if (this.c || TextUtils.isEmpty(b2)) {
b2 = this.f8976b;
}
if (TextUtils.isEmpty(b2)) {
throw new kf0(new up.a().a(Uri.EMPTY).a(), Uri.EMPTY, q.h(), 0L, new IllegalStateException("No license URL"));
}
HashMap hashMap = new HashMap();
UUID uuid2 = jh.e;
hashMap.put("Content-Type", uuid2.equals(uuid) ? "text/xml" : jh.c.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.d) {
hashMap.putAll(this.d);
}
return a(this.f8975a, b2, aVar.a(), hashMap);
}
}