Files
rr3-apk/decompiled/sources/androidx/credentials/provider/BeginGetPublicKeyCredentialOption.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

77 lines
3.5 KiB
Java

package androidx.credentials.provider;
import android.os.Bundle;
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 BeginGetPublicKeyCredentialOption extends BeginGetCredentialOption {
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 BeginGetPublicKeyCredentialOption(Bundle candidateQueryData, String id, String requestJson) {
this(candidateQueryData, id, requestJson, null, 8, null);
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
}
public final byte[] getClientDataHash() {
return this.clientDataHash;
}
public final String getRequestJson() {
return this.requestJson;
}
public /* synthetic */ BeginGetPublicKeyCredentialOption(Bundle bundle, String str, String str2, byte[] bArr, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(bundle, str, str2, (i & 8) != 0 ? null : bArr);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginGetPublicKeyCredentialOption(Bundle candidateQueryData, String id, String requestJson, byte[] bArr) {
super(id, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, candidateQueryData);
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
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());
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginGetPublicKeyCredentialOption createFrom$credentials_release(Bundle data, String id) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
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 BeginGetPublicKeyCredentialOption(data, id, string, byteArray);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
public final BeginGetPublicKeyCredentialOption createFromEntrySlice$credentials_release(Bundle data, String id) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
return new BeginGetPublicKeyCredentialOption(data, id, "{\"dummy_key\":\"dummy_value\"}", null, 8, null);
}
}
}