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

109 lines
5.5 KiB
Java

package androidx.credentials.provider;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.credentials.CreateCredentialRequest;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class ProviderCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE = "androidx.credentials.provider.extra.CREATE_CREDENTIAL_REQUEST_TYPE";
private static final String EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA = "androidx.credentials.provider.extra.CREATE_REQUEST_CANDIDATE_QUERY_DATA";
private static final String EXTRA_CREATE_REQUEST_CREDENTIAL_DATA = "androidx.credentials.provider.extra.CREATE_REQUEST_CREDENTIAL_DATA";
private final BiometricPromptResult biometricPromptResult;
private final CallingAppInfo callingAppInfo;
private final CreateCredentialRequest callingRequest;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public ProviderCreateCredentialRequest(CreateCredentialRequest callingRequest, CallingAppInfo callingAppInfo) {
this(callingRequest, callingAppInfo, null, 4, null);
Intrinsics.checkNotNullParameter(callingRequest, "callingRequest");
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
}
@RequiresApi(23)
public static final Bundle asBundle(ProviderCreateCredentialRequest providerCreateCredentialRequest) {
return Companion.asBundle(providerCreateCredentialRequest);
}
@RequiresApi(23)
public static final ProviderCreateCredentialRequest fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final BiometricPromptResult getBiometricPromptResult() {
return this.biometricPromptResult;
}
public final CallingAppInfo getCallingAppInfo() {
return this.callingAppInfo;
}
public final CreateCredentialRequest getCallingRequest() {
return this.callingRequest;
}
public ProviderCreateCredentialRequest(CreateCredentialRequest callingRequest, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult) {
Intrinsics.checkNotNullParameter(callingRequest, "callingRequest");
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
this.callingRequest = callingRequest;
this.callingAppInfo = callingAppInfo;
this.biometricPromptResult = biometricPromptResult;
}
public /* synthetic */ ProviderCreateCredentialRequest(CreateCredentialRequest createCredentialRequest, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(createCredentialRequest, callingAppInfo, (i & 4) != 0 ? null : biometricPromptResult);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(23)
public final Bundle asBundle(ProviderCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Bundle bundle = new Bundle();
bundle.putString(ProviderCreateCredentialRequest.EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE, request.getCallingRequest().getType());
bundle.putBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CREDENTIAL_DATA, request.getCallingRequest().getCredentialData());
bundle.putBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA, request.getCallingRequest().getCandidateQueryData());
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, request.getCallingAppInfo());
return bundle;
}
@RequiresApi(23)
public final ProviderCreateCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
String string = bundle.getString(ProviderCreateCredentialRequest.EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE);
if (string == null) {
throw new IllegalArgumentException("Bundle was missing request type.");
}
Bundle bundle2 = bundle.getBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CREDENTIAL_DATA);
if (bundle2 == null) {
bundle2 = new Bundle();
}
Bundle bundle3 = bundle2;
Bundle bundle4 = bundle.getBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA);
if (bundle4 == null) {
bundle4 = new Bundle();
}
Bundle bundle5 = bundle4;
String string2 = bundle.getString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_ORIGIN);
CallingAppInfo extractCallingAppInfo$credentials_release = CallingAppInfo.Companion.extractCallingAppInfo$credentials_release(bundle);
if (extractCallingAppInfo$credentials_release == null) {
throw new IllegalArgumentException("Bundle was missing CallingAppInfo.");
}
try {
return new ProviderCreateCredentialRequest(CreateCredentialRequest.Companion.createFrom(string, bundle3, bundle5, false, string2), extractCallingAppInfo$credentials_release, null, 4, null);
} catch (Exception e) {
throw new IllegalArgumentException("Conversion failed with " + e);
}
}
}
}