导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - f.java 源代码

正在查看: Uptodown App Store v6.80 应用的 f.java JAVA 源代码文件

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


package G;

import M.AbstractC0112p;
import androidx.browser.trusted.sharing.ShareTarget;
import com.google.android.gms.common.api.Status;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public final class f implements Runnable {

    private static final P.a f184c = new P.a("RevokeAccessOperation", new String[0]);

    private final String f185a;

    private final L.l f186b = new L.l(null);

    public f(String str) {
        this.f185a = AbstractC0112p.f(str);
    }

    public static K.g a(String str) {
        if (str == null) {
            return K.h.a(new Status(4), null);
        }
        f fVar = new f(str);
        new Thread(fVar).start();
        return fVar.f186b;
    }

    @Override
    public final void run() {
        Status status = Status.f1233h;
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://accounts.google.com/o/oauth2/revoke?token=" + this.f185a).openConnection();
            httpURLConnection.setRequestProperty("Content-Type", ShareTarget.ENCODING_TYPE_URL_ENCODED);
            int responseCode = httpURLConnection.getResponseCode();
            if (responseCode == 200) {
                status = Status.f1231f;
            } else {
                f184c.b("Unable to revoke access!", new Object[0]);
            }
            f184c.a("Response Code: " + responseCode, new Object[0]);
        } catch (IOException e2) {
            f184c.b("IOException when revoking access: ".concat(String.valueOf(e2.toString())), new Object[0]);
        } catch (Exception e3) {
            f184c.b("Exception when revoking access: ".concat(String.valueOf(e3.toString())), new Object[0]);
        }
        this.f186b.f(status);
    }
}