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