package androidx.credentials; import android.os.Bundle; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.credentials.CreateCredentialRequest; import androidx.credentials.internal.FrameworkClassParsingException; import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; @SourceDebugExtension({"SMAP\nCreatePasswordRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreatePasswordRequest.kt\nandroidx/credentials/CreatePasswordRequest\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,209:1\n1#2:210\n*E\n"}) /* loaded from: classes.dex */ public final class CreatePasswordRequest extends CreateCredentialRequest { @RestrictTo({RestrictTo.Scope.LIBRARY}) public static final String BUNDLE_KEY_ID = "androidx.credentials.BUNDLE_KEY_ID"; @RestrictTo({RestrictTo.Scope.LIBRARY}) public static final String BUNDLE_KEY_PASSWORD = "androidx.credentials.BUNDLE_KEY_PASSWORD"; public static final Companion Companion = new Companion(null); private final String id; private final String password; /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CreatePasswordRequest(String id, String password) { this(id, password, null, false, false, 28, null); Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CreatePasswordRequest(String id, String password, String str) { this(id, password, str, false, false, 24, null); Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CreatePasswordRequest(String id, String password, String str, boolean z) { this(id, password, str, z, false, 16, null); Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); } public /* synthetic */ CreatePasswordRequest(String str, String str2, boolean z, CreateCredentialRequest.DisplayInfo displayInfo, String str3, boolean z2, Bundle bundle, Bundle bundle2, DefaultConstructorMarker defaultConstructorMarker) { this(str, str2, z, displayInfo, str3, z2, bundle, bundle2); } public final String getId() { return this.id; } public final String getPassword() { return this.password; } public /* synthetic */ CreatePasswordRequest(String str, String str2, boolean z, CreateCredentialRequest.DisplayInfo displayInfo, String str3, boolean z2, Bundle bundle, Bundle bundle2, int i, DefaultConstructorMarker defaultConstructorMarker) { this(str, str2, z, displayInfo, (i & 16) != 0 ? null : str3, z2, (i & 64) != 0 ? Companion.toCredentialDataBundle$credentials_release(str, str2) : bundle, (i & 128) != 0 ? Companion.toCandidateDataBundle$credentials_release() : bundle2); } private CreatePasswordRequest(String str, String str2, boolean z, CreateCredentialRequest.DisplayInfo displayInfo, String str3, boolean z2, Bundle bundle, Bundle bundle2) { super(PasswordCredential.TYPE_PASSWORD_CREDENTIAL, bundle, bundle2, false, z, displayInfo, str3, z2); this.id = str; this.password = str2; if (str2.length() <= 0) { throw new IllegalArgumentException("password should not be empty".toString()); } } public /* synthetic */ CreatePasswordRequest(String str, String str2, String str3, boolean z, boolean z2, int i, DefaultConstructorMarker defaultConstructorMarker) { this(str, str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? false : z, (i & 16) != 0 ? false : z2); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CreatePasswordRequest(String id, String password, String str, boolean z, boolean z2) { this(id, password, z2, new CreateCredentialRequest.DisplayInfo(id, null), str, z, null, null, PsExtractor.AUDIO_STREAM, null); Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CreatePasswordRequest(String id, String password, String str, String str2, boolean z, boolean z2) { this(id, password, z2, new CreateCredentialRequest.DisplayInfo(id, null, str2), str, z, null, null, PsExtractor.AUDIO_STREAM, null); Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); } public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } public final Bundle toCredentialDataBundle$credentials_release(String id, String password) { Intrinsics.checkNotNullParameter(id, "id"); Intrinsics.checkNotNullParameter(password, "password"); Bundle bundle = new Bundle(); bundle.putString("androidx.credentials.BUNDLE_KEY_ID", id); bundle.putString("androidx.credentials.BUNDLE_KEY_PASSWORD", password); return bundle; } public final Bundle toCandidateDataBundle$credentials_release() { return new Bundle(); } @RequiresApi(23) public final CreatePasswordRequest createFrom$credentials_release(Bundle data, String str, Bundle candidateQueryData) { CreateCredentialRequest.DisplayInfo displayInfo; Intrinsics.checkNotNullParameter(data, "data"); Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData"); try { String string = data.getString("androidx.credentials.BUNDLE_KEY_ID"); Intrinsics.checkNotNull(string); String string2 = data.getString("androidx.credentials.BUNDLE_KEY_PASSWORD"); Intrinsics.checkNotNull(string2); try { displayInfo = CreateCredentialRequest.DisplayInfo.Companion.createFrom(data); } catch (IllegalArgumentException unused) { displayInfo = new CreateCredentialRequest.DisplayInfo(string, null); } return new CreatePasswordRequest(string, string2, data.getBoolean("androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED", false), displayInfo, str, data.getBoolean("androidx.credentials.BUNDLE_KEY_PREFER_IMMEDIATELY_AVAILABLE_CREDENTIALS", false), data, candidateQueryData, null); } catch (Exception unused2) { throw new FrameworkClassParsingException(); } } } }