星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.qiyi.security.fingerprint.f;
import android.content.Context;
import android.text.TextUtils;
import com.iqiyi.qyverificationcenter.bean.QYVerifyConstants;
import com.qiyi.Protect;
import com.qiyi.c.a.b;
import com.qiyi.c.a.e;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
public class d {
public class a implements e<com.qiyi.security.fingerprint.i.a> {
final Context a;
final com.qiyi.security.fingerprint.f.a f9379b;
final int f9380c;
final boolean f9381d;
final boolean f9382e;
a(Context context, com.qiyi.security.fingerprint.f.a aVar, int i2, boolean z, boolean z2) {
this.a = context;
this.f9379b = aVar;
this.f9380c = i2;
this.f9381d = z;
this.f9382e = z2;
}
@Override
public void b(Exception exc) {
if (exc != null) {
String message = exc.getMessage();
if (TextUtils.isEmpty(message)) {
return;
}
try {
String optString = new JSONObject(message).optString("error_code");
if ("4202".equals(optString)) {
d.this.h(this.a, true, this.f9381d, this.f9382e, this.f9379b, this.f9380c);
} else if (!"4203".equals(optString)) {
d.this.i(this.a, this.f9379b, this.f9380c);
} else {
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "finish because of 4203");
}
return;
} catch (JSONException unused) {
d.this.i(this.a, this.f9379b, this.f9380c);
return;
}
}
d.this.i(this.a, this.f9379b, this.f9380c);
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "HttpException e : ", exc);
}
@Override
public void a(com.qiyi.security.fingerprint.i.a aVar) {
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "doFailedStuf onResponse fingerPrintData : ", aVar);
if (aVar == null) {
d.this.i(this.a, this.f9379b, this.f9380c);
return;
}
if (aVar instanceof com.qiyi.security.fingerprint.i.c) {
com.qiyi.security.fingerprint.i.c cVar = (com.qiyi.security.fingerprint.i.c) aVar;
d.this.m(this.a, cVar);
com.qiyi.security.fingerprint.f.a aVar2 = this.f9379b;
if (aVar2 != null) {
aVar2.b(cVar.b());
return;
}
return;
}
if (aVar instanceof com.qiyi.security.fingerprint.i.b) {
d.this.i(this.a, this.f9379b, this.f9380c);
}
}
}
public class b implements com.qiyi.security.fingerprint.f.a<List<String>> {
final Context a;
final com.qiyi.security.fingerprint.f.a f9384b;
public class a implements e<com.qiyi.security.fingerprint.i.a> {
a() {
}
@Override
public void b(Exception exc) {
com.qiyi.security.fingerprint.f.a aVar = b.this.f9384b;
if (aVar != null) {
aVar.c(exc.getMessage());
}
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "HttpException e : ", exc, "; message : ", exc.getMessage());
com.qiyi.security.fingerprint.l.e.B(b.this.a, null, 0, "dfp data responsed failed:" + exc.getMessage());
}
@Override
public void a(com.qiyi.security.fingerprint.i.a aVar) {
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "doFailedStufWithBackup onResponse fingerPrintData : ", aVar);
if (aVar instanceof com.qiyi.security.fingerprint.i.c) {
com.qiyi.security.fingerprint.i.c cVar = (com.qiyi.security.fingerprint.i.c) aVar;
b bVar = b.this;
d.this.m(bVar.a, cVar);
com.qiyi.security.fingerprint.f.a aVar2 = b.this.f9384b;
if (aVar2 != null) {
aVar2.b(cVar.b());
return;
}
return;
}
if (aVar instanceof com.qiyi.security.fingerprint.i.b) {
com.qiyi.security.fingerprint.f.a aVar3 = b.this.f9384b;
if (aVar3 != null) {
aVar3.c(((com.qiyi.security.fingerprint.i.b) aVar).a());
}
com.qiyi.security.fingerprint.l.e.B(b.this.a, String.valueOf(aVar), 0, "dfp data responsed successfully but it was error");
return;
}
b.this.f9384b.c("Unknown error");
com.qiyi.security.fingerprint.l.e.B(b.this.a, null, 0, "dfp data responsed successfully but it was null");
}
}
b(Context context, com.qiyi.security.fingerprint.f.a aVar) {
this.a = context;
this.f9384b = aVar;
}
@Override
public void c(List<String> list) {
com.qiyi.security.fingerprint.f.a aVar = this.f9384b;
if (aVar != null) {
aVar.c("get remote Ip failed");
}
com.qiyi.security.fingerprint.l.e.B(this.a, null, 0, "get remote Ip failed");
}
@Override
public void b(List<String> list) {
if (!list.isEmpty()) {
com.qiyi.security.fingerprint.l.e.F(this.a, list.size());
com.qiyi.security.fingerprint.l.e.E(this.a, list);
}
if (com.qiyi.security.fingerprint.l.e.j(this.a) <= 0) {
this.f9384b.c("download ip from net is null");
} else {
d.this.f(this.a, true).u(new a());
}
}
}
public class c extends com.qiyi.c.a.q.a<com.qiyi.security.fingerprint.i.a> {
c() {
}
@Override
public com.qiyi.security.fingerprint.i.a b(String str, String str2) {
if (com.qiyi.security.fingerprint.l.e.o(str)) {
return null;
}
try {
return com.qiyi.security.fingerprint.f.b.a(new JSONObject(str));
} catch (JSONException e2) {
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", e2);
return null;
}
}
}
private com.qiyi.c.a.b<com.qiyi.security.fingerprint.i.a> e(Context context, boolean z, boolean z2, boolean z3) {
String c2;
String k2 = k(context);
String i2 = com.qiyi.security.fingerprint.b.k().i(context, z);
boolean equals = "1".equals(com.qiyi.security.fingerprint.m.f.b.a(context, "SP_KEY_FINGER_PRINT_ALGORITHM", "0"));
if (equals) {
c2 = Protect.getQdsf(context, 20L, k2 + i2 + "ANDROID6.02");
} else {
c2 = com.qiyi.security.fingerprint.l.e.c(k2 + i2 + "ANDROID6.0");
}
com.qiyi.security.fingerprint.m.d.a.b("Finger:RequestDFP---->", "dim is : ", i2);
com.qiyi.security.fingerprint.l.c.e(z3);
b.a b2 = new b.a().u("https://cook.iqiyi.com/security/dfp/sign").n(new c()).m(b.EnumC0284b.POST).r(true).s(0).l(com.qiyi.security.fingerprint.i.a.class).j(10000).i().q(10000).b(QYVerifyConstants.PingbackKeys.kDfp, k2).b("dim", i2).b("ver", "6.0").b("plat", "ANDROID").b("sig", c2);
if (equals) {
b2.b("sw_sig", String.valueOf(2));
}
if (z2) {
b2.k(new com.qiyi.security.fingerprint.h.a(context));
}
return b2.h();
}
public com.qiyi.c.a.b<com.qiyi.security.fingerprint.i.a> f(Context context, boolean z) {
return e(context, false, true, z);
}
private void g(Context context, boolean z, boolean z2, com.qiyi.security.fingerprint.f.a<String> aVar, int i2) {
h(context, false, z, z2, aVar, i2);
}
public void h(Context context, boolean z, boolean z2, boolean z3, com.qiyi.security.fingerprint.f.a<String> aVar, int i2) {
e(context, z, z2, z3).u(new a(context, aVar, i2, z2, z3));
}
public void i(Context context, com.qiyi.security.fingerprint.f.a<String> aVar, int i2) {
if (i2 == 1) {
g(context, true, false, aVar, 2);
} else if (i2 == 2) {
j(context, aVar);
}
}
private void j(Context context, com.qiyi.security.fingerprint.f.a<String> aVar) {
if (com.qiyi.security.fingerprint.l.e.j(context) <= 0) {
com.qiyi.security.fingerprint.l.e.i(new b(context, aVar));
}
}
private String k(Context context) {
if (context == null) {
return "";
}
com.qiyi.security.fingerprint.g.a aVar = new com.qiyi.security.fingerprint.g.a(context);
try {
String f2 = aVar.f();
if (f2 == null) {
f2 = aVar.e();
}
return f2 == null ? "" : f2;
} catch (com.qiyi.security.fingerprint.j.a unused) {
return "";
}
}
public void m(Context context, com.qiyi.security.fingerprint.i.c cVar) {
if (context == null || cVar == null) {
return;
}
com.qiyi.security.fingerprint.l.c.a = cVar.b();
com.qiyi.security.fingerprint.l.c.f9405b = cVar.a();
com.qiyi.security.fingerprint.l.c.f9406c = cVar.c();
long currentTimeMillis = System.currentTimeMillis();
com.qiyi.security.fingerprint.l.c.f9408e = currentTimeMillis;
com.qiyi.security.fingerprint.g.a aVar = new com.qiyi.security.fingerprint.g.a(context);
aVar.k(cVar, currentTimeMillis);
aVar.j(cVar, currentTimeMillis);
}
public void l(Context context, com.qiyi.security.fingerprint.f.a<String> aVar) {
g(context, false, false, aVar, 1);
}
}