101 lines
3.1 KiB
Java
101 lines
3.1 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.gson.Gson;
|
||
|
import com.huawei.hms.framework.common.ContainerUtils;
|
||
|
import io.beid.beidk.definitions.SCBHeader;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Locale;
|
||
|
import java.util.Map;
|
||
|
import o.C13395fZS;
|
||
|
|
||
|
/* renamed from: o.lZ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C16131lZ {
|
||
|
private final String a;
|
||
|
private final InterfaceC3521azC e;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C16131lZ(InterfaceC3521azC interfaceC3521azC, String str) {
|
||
|
C14957gcv.e(interfaceC3521azC, "");
|
||
|
C14957gcv.e(str, "");
|
||
|
this.e = interfaceC3521azC;
|
||
|
this.a = str;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.lZ$RVV */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class RVV {
|
||
|
private RVV() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ RVV(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final String b() {
|
||
|
CNl cNl;
|
||
|
C8064dAG a = this.e.a();
|
||
|
String str = (a == null || (cNl = a.h) == null) ? null : cNl.a;
|
||
|
return str == null ? "" : str;
|
||
|
}
|
||
|
|
||
|
public final String c(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
HashMap hashMap = new HashMap();
|
||
|
hashMap.put("UserId", "ENET");
|
||
|
hashMap.put("ekycMethod", "AWARENESS");
|
||
|
String upperCase = this.a.toUpperCase(Locale.ROOT);
|
||
|
C14957gcv.c((Object) upperCase, "");
|
||
|
hashMap.put(SCBHeader.SCB_REQ_HEADER_ACCEPT_LANGUAGE, upperCase);
|
||
|
hashMap.put("referenceID", str);
|
||
|
hashMap.put("userType", "ETB");
|
||
|
hashMap.put("funcNm", "Start");
|
||
|
hashMap.put("service", "AWARENESS");
|
||
|
String b = b();
|
||
|
String str2 = gdZ.d((CharSequence) b(), (CharSequence) "?", false) ? ContainerUtils.FIELD_DELIMITER : "?";
|
||
|
HashMap hashMap2 = hashMap;
|
||
|
C14957gcv.e(hashMap2, "");
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
for (Map.Entry entry : hashMap2.entrySet()) {
|
||
|
if (sb.length() > 0) {
|
||
|
sb.append(ContainerUtils.FIELD_DELIMITER);
|
||
|
}
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("%s=%s", Arrays.copyOf(new Object[]{entry.getKey(), entry.getValue()}, 2));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
sb.append(format);
|
||
|
}
|
||
|
String obj = sb.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(b);
|
||
|
sb2.append(str2);
|
||
|
sb2.append(obj);
|
||
|
return sb2.toString();
|
||
|
}
|
||
|
|
||
|
public final C0408Fz e(String str) {
|
||
|
Object a;
|
||
|
C14957gcv.e(str, "");
|
||
|
try {
|
||
|
C13395fZS.IeS ieS = C13395fZS.b;
|
||
|
C16131lZ c16131lZ = this;
|
||
|
a = C13395fZS.a(new C0408Fz(((C0408Fz) new Gson().fromJson(str, C0408Fz.class)).d));
|
||
|
} catch (Throwable th) {
|
||
|
C13395fZS.IeS ieS2 = C13395fZS.b;
|
||
|
C14957gcv.e(th, "");
|
||
|
a = C13395fZS.a(new C13395fZS.LWm(th));
|
||
|
}
|
||
|
if (C13395fZS.e(a)) {
|
||
|
a = null;
|
||
|
}
|
||
|
return (C0408Fz) a;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new RVV((byte) 0);
|
||
|
}
|
||
|
}
|