导航菜单

页面标题

页面副标题

CAARD v1.1.19 - e.java 源代码

正在查看: CAARD v1.1.19 应用的 e.java JAVA 源代码文件

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


package q4;

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

public final class e implements Runnable {

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

    private final String f12004a;

    private final com.google.android.gms.common.api.internal.t f12005b = new com.google.android.gms.common.api.internal.t(null);

    public e(String str) {
        this.f12004a = com.google.android.gms.common.internal.o.f(str);
    }

    public static com.google.android.gms.common.api.i a(String str) {
        if (str == null) {
            return com.google.android.gms.common.api.j.a(new Status(4), null);
        }
        e eVar = new e(str);
        new Thread(eVar).start();
        return eVar.f12005b;
    }

    @Override
    public final void run() {
        Status status = Status.f5752n;
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://accounts.google.com/o/oauth2/revoke?token=" + this.f12004a).openConnection();
            httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            int responseCode = httpURLConnection.getResponseCode();
            if (responseCode == 200) {
                status = Status.f5750f;
            } else {
                f12003c.c("Unable to revoke access!", new Object[0]);
            }
            f12003c.a("Response Code: " + responseCode, new Object[0]);
        } catch (IOException e10) {
            f12003c.c("IOException when revoking access: ".concat(String.valueOf(e10.toString())), new Object[0]);
        } catch (Exception e11) {
            f12003c.c("Exception when revoking access: ".concat(String.valueOf(e11.toString())), new Object[0]);
        }
        this.f12005b.setResult(status);
    }
}