导航菜单

页面标题

页面副标题

Tasker v6.5.11 - d.java 源代码

正在查看: Tasker v6.5.11 应用的 d.java JAVA 源代码文件

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


package t8;

import com.google.android.gms.common.api.Status;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public final class d implements Runnable {
    private static final c9.a r = new c9.a("RevokeAccessOperation", new String[0]);
    private final String i;
    private final y8.o q = new y8.o(null);

    public d(String str) {
        this.i = z8.h.f(str);
    }

    public static x8.i a(String str) {
        if (str == null) {
            return x8.j.a(new Status(4), null);
        }
        d dVar = new d(str);
        new Thread(dVar).start();
        return dVar.q;
    }

    @Override
    public final void run() {
        Status status = Status.w;
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://accounts.google.com/o/oauth2/revoke?token=" + this.i).openConnection();
            httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            int responseCode = httpURLConnection.getResponseCode();
            if (responseCode == 200) {
                status = Status.u;
            } else {
                r.b("Unable to revoke access!", new Object[0]);
            }
            r.a("Response Code: " + responseCode, new Object[0]);
        } catch (IOException e) {
            r.b("IOException when revoking access: ".concat(String.valueOf(e.toString())), new Object[0]);
        } catch (Exception e2) {
            r.b("Exception when revoking access: ".concat(String.valueOf(e2.toString())), new Object[0]);
        }
        this.q.g(status);
    }
}