导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - fr.java 源代码

正在查看: Clash Legends v0.0.1 应用的 fr.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.paypal.android.sdk;

import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public final class fr extends fn {
    public String a;
    public String b;
    public long c;
    public boolean d;

    public fr(String str, cx cxVar, b bVar, String str2) {
        super(df.PreAuthRequest, cxVar, bVar, b(str, str2));
    }

    @Override
    public final String b() {
        HashMap hashMap = new HashMap();
        hashMap.put("response_type", "token");
        hashMap.put("grant_type", "client_credentials");
        hashMap.put("return_authn_schemes", "true");
        hashMap.put("device_info", d.a(em.a().toString()));
        hashMap.put("app_info", d.a(eh.a().toString()));
        hashMap.put("risk_data", d.a(ao.a().c().toString()));
        return d.a(hashMap);
    }

    @Override
    public final void c() {
        JSONObject m = m();
        try {
            this.a = m.getString("access_token");
            this.b = m.getString("scope");
            this.c = m.getLong("expires_in");
            JSONArray jSONArray = m.getJSONArray("supported_authn_schemes");
            for (int i = 0; i < jSONArray.length(); i++) {
                if (jSONArray.get(i).equals("phone_pin")) {
                    this.d = true;
                }
            }
        } catch (JSONException e) {
            b(m);
        }
    }

    @Override
    public final void d() {
        b(m());
    }

    @Override
    public final String e() {
        return "{\"scope\":\"https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/vault/credit-card/.* openid\",\"access_token\":\"iPVzWUwTo1fEG6n.2sTZCahv8wa2b8uGpBs1KZ-6XxA\",\"token_type\":\"Bearer\",\"expires_in\":900,\"supported_authn_schemes\": [ \"email_password\", \"phone_pin\" ]}";
    }
}