正在查看: Clash Legends v0.0.1 应用的 fm.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Clash Legends v0.0.1 应用的 fm.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.paypal.android.sdk;
import android.os.Build;
import in.juspay.godel.core.Constants;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;
public final class fm extends fn {
public ep a;
public boolean b;
public String c;
public String d;
public String e;
public long f;
private String j;
private final boolean k;
private final String l;
private String m;
private String n;
public fm(cx cxVar, b bVar, String str, String str2, ep epVar, String str3, String str4, boolean z, String str5, boolean z2, String str6) {
this(cxVar, bVar, str, str2, epVar, z, str5, z2, str6);
this.m = str3;
this.n = str4;
}
public fm(cx cxVar, b bVar, String str, String str2, ep epVar, boolean z, String str3, boolean z2, String str4) {
super(df.LoginRequest, cxVar, bVar, b(str, str2));
this.a = epVar;
this.b = z;
this.j = str3;
this.k = z2;
this.l = str4;
}
@Override
public final String b() {
String e;
String str;
HashMap hashMap = new HashMap();
hashMap.put("response_type", this.j);
String str2 = this.j;
if (str2 != null && str2.equals("token")) {
hashMap.put("scope_consent_context", "access_token");
if (!d.a((CharSequence) this.l)) {
hashMap.put("scope", this.l);
}
}
hashMap.put("risk_data", d.a(ao.a().c().toString()));
if (this.m != null) {
hashMap.put("grant_type", "urn:paypal:params:oauth2:grant_type:otp");
hashMap.put("nonce", this.n);
JSONObject jSONObject = new JSONObject();
jSONObject.accumulate("token_identifier", Constants.OTP);
jSONObject.accumulate("token_value", this.m);
e = a(jSONObject);
str = "2fa_token_claims";
} else {
boolean a = this.a.a();
hashMap.put("grant_type", "password");
if (a) {
hashMap.put("email", d.a(this.a.b()));
hashMap.put("password", d.a(this.a.c()));
hashMap.put("device_name", d.a(Build.DEVICE));
hashMap.put("redirect_uri", d.a("urn:ietf:wg:oauth:2.0:oob"));
return d.a(hashMap);
}
this.a.d().c();
hashMap.put("phone", d.a("+" + this.a.d().c() + " " + this.a.d().a()));
e = this.a.e();
str = "pin";
}
hashMap.put(str, e);
hashMap.put("device_name", d.a(Build.DEVICE));
hashMap.put("redirect_uri", d.a("urn:ietf:wg:oauth:2.0:oob"));
return d.a(hashMap);
}
@Override
public final void c() {
JSONObject m = m();
try {
m.getString("scope");
this.e = m.getString("scope");
if (this.k) {
this.c = m.getString(com.instamojo.android.helpers.Constants.KEY_CODE);
this.g = m.getString("nonce");
} else {
this.d = m.getString("access_token");
this.f = m.getLong("expires_in");
}
} catch (JSONException e) {
b(m);
}
}
@Override
public final void d() {
b(m());
}
@Override
public final String e() {
return "{ \"access_token\": \"mock_access_token\", \"code\": \"mock_code_EJhi9jOPswug9TDOv93qg4Y28xIlqPDpAoqd7biDLpeGCPvORHjP1Fh4CbFPgKMGCHejdDwe9w1uDWnjPCp1lkaFBjVmjvjpFtnr6z1YeBbmfZYqa9faQT_71dmgZhMIFVkbi4yO7hk0LBHXt_wtdsw\", \"scope\": \"https://api.paypal.com/v1/payments/.*\", \"nonce\": \"mock_nonce\", \"token_type\": \"Bearer\",\"expires_in\":28800,\"visitor_id\":\"zVxjDBTRRNfYXdOb19-lcTblxm-6bzXGvSlP76ZiHOudKaAvoxrW8Cg5pA6EjIPpiz4zlw\" }";
}
public final boolean t() {
return this.m != null;
}
}