alexandroid/decompiled/jadx/sources/androidx/credentials/provider/BeginCreatePublicKeyCredentialRequest.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

111 lines
6.5 KiB
Java

package androidx.credentials.provider;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.internal.FrameworkClassParsingException;
import androidx.credentials.provider.utils.RequestValidationUtil;
import kotlin.Metadata;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u0000 \u00112\u00020\u0001:\u0001\u0011B-\b\u0007\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\t¢\u0006\u0002\u0010\nJ\u0018\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0002\u001a\u00020\u0003H\u0002R\u0013\u0010\b\u001a\u0004\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0012"}, d2 = {"Landroidx/credentials/provider/BeginCreatePublicKeyCredentialRequest;", "Landroidx/credentials/provider/BeginCreateCredentialRequest;", "requestJson", "", "callingAppInfo", "Landroidx/credentials/provider/CallingAppInfo;", "candidateQueryData", "Landroid/os/Bundle;", "clientDataHash", "", "(Ljava/lang/String;Landroidx/credentials/provider/CallingAppInfo;Landroid/os/Bundle;[B)V", "getClientDataHash", "()[B", "getRequestJson", "()Ljava/lang/String;", "initiateBundle", "", "Companion", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes13.dex */
public final class BeginCreatePublicKeyCredentialRequest extends BeginCreateCredentialRequest {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@Nullable
private final byte[] clientDataHash;
@NotNull
private final String requestJson;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@JvmOverloads
public BeginCreatePublicKeyCredentialRequest(@NotNull String str, @Nullable CallingAppInfo callingAppInfo, @NotNull Bundle bundle, @Nullable byte[] bArr) {
super(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, bundle, callingAppInfo);
str.getClass();
bundle.getClass();
this.requestJson = str;
this.clientDataHash = bArr;
if (RequestValidationUtil.INSTANCE.isValidJSON(str)) {
initiateBundle(bundle, str);
} else {
Single$$ExternalSyntheticBUOutline0.m$3("requestJson must not be empty, and must be a valid JSON");
throw null;
}
}
@JvmStatic
@VisibleForTesting
@NotNull
public static final BeginCreatePublicKeyCredentialRequest createForTest(@NotNull Bundle bundle, @Nullable CallingAppInfo callingAppInfo) {
return INSTANCE.createForTest(bundle, callingAppInfo);
}
private final void initiateBundle(Bundle candidateQueryData, String requestJson) {
candidateQueryData.putString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON", requestJson);
}
@Nullable
public final byte[] getClientDataHash() {
return this.clientDataHash;
}
@NotNull
public final String getRequestJson() {
return this.requestJson;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001a\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0007J\u001f\u0010\t\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0000¢\u0006\u0002\b\n¨\u0006\u000b"}, d2 = {"Landroidx/credentials/provider/BeginCreatePublicKeyCredentialRequest$Companion;", "", "()V", "createForTest", "Landroidx/credentials/provider/BeginCreatePublicKeyCredentialRequest;", "data", "Landroid/os/Bundle;", "callingAppInfo", "Landroidx/credentials/provider/CallingAppInfo;", "createFrom", "createFrom$credentials_release", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmStatic
@VisibleForTesting
@NotNull
public final BeginCreatePublicKeyCredentialRequest createForTest(@NotNull Bundle data, @Nullable CallingAppInfo callingAppInfo) {
data.getClass();
return createFrom$credentials_release(data, callingAppInfo);
}
@NotNull
public final BeginCreatePublicKeyCredentialRequest createFrom$credentials_release(@NotNull Bundle data, @Nullable CallingAppInfo callingAppInfo) {
data.getClass();
try {
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
byte[] byteArray = data.getByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH");
string.getClass();
return new BeginCreatePublicKeyCredentialRequest(string, callingAppInfo, data, byteArray);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
private Companion() {
}
}
public /* synthetic */ BeginCreatePublicKeyCredentialRequest(String str, CallingAppInfo callingAppInfo, Bundle bundle, byte[] bArr, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, callingAppInfo, bundle, (i & 8) != 0 ? null : bArr);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@JvmOverloads
public BeginCreatePublicKeyCredentialRequest(@NotNull String str, @Nullable CallingAppInfo callingAppInfo, @NotNull Bundle bundle) {
this(str, callingAppInfo, bundle, null, 8, null);
str.getClass();
bundle.getClass();
}
}