- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
59 lines
2.2 KiB
Java
59 lines
2.2 KiB
Java
package androidx.credentials.provider;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.credentials.PasswordCredential;
|
|
import androidx.credentials.PublicKeyCredential;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class BeginGetCredentialOption {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final Bundle candidateQueryData;
|
|
private final String id;
|
|
private final String type;
|
|
|
|
public final Bundle getCandidateQueryData() {
|
|
return this.candidateQueryData;
|
|
}
|
|
|
|
public final String getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public final String getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public BeginGetCredentialOption(String id, String type, Bundle candidateQueryData) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
|
|
this.id = id;
|
|
this.type = type;
|
|
this.candidateQueryData = candidateQueryData;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final BeginGetCredentialOption createFrom$credentials_release(String id, String type, Bundle candidateQueryData) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
|
|
if (Intrinsics.areEqual(type, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
|
|
return BeginGetPasswordOption.Companion.createFrom$credentials_release(candidateQueryData, id);
|
|
}
|
|
if (Intrinsics.areEqual(type, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
|
|
return BeginGetPublicKeyCredentialOption.Companion.createFrom$credentials_release(candidateQueryData, id);
|
|
}
|
|
return new BeginGetCustomCredentialOption(id, type, candidateQueryData);
|
|
}
|
|
}
|
|
}
|