正在查看: Hyouka private v5.8.9 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package y9;
import aa.e;
import android.content.Context;
import android.os.AsyncTask;
import com.stripe.android.exception.StripeException;
import java.util.Map;
import java.util.concurrent.Executor;
public class h {
d f9722a = new a();
e f9723b = new b();
private Context f9724c;
private String f9725d;
class a implements d {
a() {
}
}
class b implements e {
class a extends AsyncTask<Void, Void, c> {
final String f9728a;
final Map f9729b;
final i f9730c;
a(String str, Map map, i iVar) {
this.f9728a = str;
this.f9729b = map;
this.f9730c = iVar;
}
@Override
public c doInBackground(Void... voidArr) {
a aVar = null;
try {
aa.d a2 = aa.d.a(this.f9728a).a();
Map map = this.f9729b;
h.b(h.this);
return new c(h.this, aa.e.e(map, a2, null), aVar);
} catch (StripeException e2) {
return new c(h.this, e2, aVar);
}
}
@Override
public void onPostExecute(c cVar) {
h.this.j(cVar, this.f9730c);
}
}
b() {
}
@Override
public void a(Map<String, Object> map, String str, Executor executor, i iVar) {
h.this.h(executor, new a(str, map, iVar));
}
}
private class c {
final z9.c f9732a;
final Exception f9733b;
c(h hVar, Exception exc, a aVar) {
this(exc);
}
c(h hVar, z9.c cVar, a aVar) {
this(cVar);
}
private c(z9.c cVar) {
this.f9732a = cVar;
this.f9733b = null;
}
private c(Exception exc) {
this.f9733b = exc;
this.f9732a = null;
}
}
interface d {
}
interface e {
void a(Map<String, Object> map, String str, Executor executor, i iVar);
}
public h(Context context, String str) {
this.f9724c = context;
i(str);
}
static e.a b(h hVar) {
hVar.getClass();
return null;
}
private void g(Map<String, Object> map, String str, Executor executor, i iVar) {
if (iVar == null) {
throw new RuntimeException("Required Parameter: 'callback' is required to use the created token and handle errors");
}
k(str);
this.f9723b.a(map, str, executor, iVar);
}
public void h(Executor executor, AsyncTask<Void, Void, c> asyncTask) {
if (executor != null) {
asyncTask.executeOnExecutor(executor, new Void[0]);
} else {
asyncTask.execute(new Void[0]);
}
}
public void j(c cVar, i iVar) {
z9.c cVar2 = cVar.f9732a;
if (cVar2 != null) {
iVar.onSuccess(cVar2);
return;
}
Exception exc = cVar.f9733b;
if (exc != null) {
iVar.onError(exc);
} else {
iVar.onError(new RuntimeException("Somehow got neither a token response or an error response"));
}
}
private void k(String str) {
if (str == null || str.length() == 0) {
throw new IllegalArgumentException("Invalid Publishable Key: You must use a valid publishable key to create a token. For more info, see https://stripe.com/docs/stripe.js.");
}
if (str.startsWith("sk_")) {
throw new IllegalArgumentException("Invalid Publishable Key: You are using a secret key to create a token, instead of the publishable one. For more info, see https://stripe.com/docs/stripe.js");
}
}
public void d(z9.b bVar, String str, Executor executor, i iVar) {
if (bVar == null) {
throw new RuntimeException("Required Parameter: 'card' is required to create a token");
}
g(ca.e.b(this.f9724c, bVar), str, executor, iVar);
}
public void e(z9.b bVar, String str, i iVar) {
d(bVar, str, null, iVar);
}
public void f(z9.b bVar, i iVar) {
e(bVar, this.f9725d, iVar);
}
public void i(String str) {
k(str);
this.f9725d = str;
}
}