Files
rr3-apk/decompiled/sources/androidx/credentials/provider/BeginCreatePublicKeyCredentialRequest.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

85 lines
3.9 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.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BeginCreatePublicKeyCredentialRequest extends BeginCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
private final byte[] clientDataHash;
private final String requestJson;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public BeginCreatePublicKeyCredentialRequest(String requestJson, CallingAppInfo callingAppInfo, Bundle candidateQueryData) {
this(requestJson, callingAppInfo, candidateQueryData, null, 8, null);
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
}
@VisibleForTesting
public static final BeginCreatePublicKeyCredentialRequest createForTest(Bundle bundle, CallingAppInfo callingAppInfo) {
return Companion.createForTest(bundle, callingAppInfo);
}
public final byte[] getClientDataHash() {
return this.clientDataHash;
}
public final String getRequestJson() {
return this.requestJson;
}
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: 'super' call moved to the top of the method (can break code semantics) */
public BeginCreatePublicKeyCredentialRequest(String requestJson, CallingAppInfo callingAppInfo, Bundle candidateQueryData, byte[] bArr) {
super(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, candidateQueryData, callingAppInfo);
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
this.requestJson = requestJson;
this.clientDataHash = bArr;
if (!RequestValidationUtil.Companion.isValidJSON(requestJson)) {
throw new IllegalArgumentException("requestJson must not be empty, and must be a valid JSON".toString());
}
initiateBundle(candidateQueryData, requestJson);
}
private final void initiateBundle(Bundle bundle, String str) {
bundle.putString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON", str);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@VisibleForTesting
public final BeginCreatePublicKeyCredentialRequest createForTest(Bundle data, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(data, "data");
return createFrom$credentials_release(data, callingAppInfo);
}
public final BeginCreatePublicKeyCredentialRequest createFrom$credentials_release(Bundle data, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(data, "data");
try {
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
byte[] byteArray = data.getByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH");
Intrinsics.checkNotNull(string);
return new BeginCreatePublicKeyCredentialRequest(string, callingAppInfo, data, byteArray);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
}
}