正在查看: CityMall v1.42.1 应用的 RunnableC6867d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 RunnableC6867d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package s4;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.AbstractC2501h;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import u4.AbstractC6922b;
import v4.C6951e;
import y4.C7017a;
public final class RunnableC6867d implements Runnable {
private static final C7017a f56812c = new C7017a("RevokeAccessOperation", new String[0]);
private final String f56813a;
private final C6951e f56814b = new C6951e(null);
public RunnableC6867d(String str) {
this.f56813a = AbstractC2501h.g(str);
}
public static PendingResult a(String str) {
if (str == null) {
return AbstractC6922b.a(new Status(4), null);
}
RunnableC6867d runnableC6867d = new RunnableC6867d(str);
new Thread(runnableC6867d).start();
return runnableC6867d.f56814b;
}
@Override
public final void run() {
Status status = Status.f27852h;
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://accounts.google.com/o/oauth2/revoke?token=" + this.f56813a).openConnection();
httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
int responseCode = httpURLConnection.getResponseCode();
if (responseCode == 200) {
status = Status.f27850f;
} else {
f56812c.b("Unable to revoke access!", new Object[0]);
}
f56812c.a("Response Code: " + responseCode, new Object[0]);
} catch (IOException e8) {
f56812c.b("IOException when revoking access: ".concat(String.valueOf(e8.toString())), new Object[0]);
} catch (Exception e9) {
f56812c.b("Exception when revoking access: ".concat(String.valueOf(e9.toString())), new Object[0]);
}
this.f56814b.h(status);
}
}