导航菜单

页面标题

页面副标题

BAM Crawford v6.14.1 - f.java 源代码

正在查看: BAM Crawford v6.14.1 应用的 f.java JAVA 源代码文件

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


package qc;

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

public final class f implements Runnable {
    private static final hd.a r = new hd.a("RevokeAccessOperation", new String[0]);
    private final String p;
    private final com.google.android.gms.common.api.internal.t q = new com.google.android.gms.common.api.internal.t((bd.e) null);

    public f(String str) {
        this.p = ed.r.f(str);
    }

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

    @Override
    public final void run() {
        Status status = Status.x;
        try {
            String valueOf = String.valueOf(this.p);
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(valueOf.length() != 0 ? "https://accounts.google.com/o/oauth2/revoke?token=".concat(valueOf) : new String("https://accounts.google.com/o/oauth2/revoke?token=")).openConnection();
            httpURLConnection.setRequestProperty(Constants.KEY_CONTENT_TYPE, "application/x-www-form-urlencoded");
            int responseCode = httpURLConnection.getResponseCode();
            if (responseCode == 200) {
                status = Status.v;
            } else {
                r.b("Unable to revoke access!", new Object[0]);
            }
            hd.a aVar = r;
            StringBuilder sb = new StringBuilder(26);
            sb.append("Response Code: ");
            sb.append(responseCode);
            aVar.a(sb.toString(), new Object[0]);
        } catch (IOException e) {
            hd.a aVar2 = r;
            String valueOf2 = String.valueOf(e.toString());
            aVar2.b(valueOf2.length() != 0 ? "IOException when revoking access: ".concat(valueOf2) : new String("IOException when revoking access: "), new Object[0]);
        } catch (Exception e2) {
            hd.a aVar3 = r;
            String valueOf3 = String.valueOf(e2.toString());
            aVar3.b(valueOf3.length() != 0 ? "Exception when revoking access: ".concat(valueOf3) : new String("Exception when revoking access: "), new Object[0]);
        }
        this.q.j(status);
    }
}