- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
74 lines
3.3 KiB
Java
74 lines
3.3 KiB
Java
package androidx.credentials.exceptions.publickeycredential;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.exceptions.CreateCredentialCustomException;
|
|
import androidx.credentials.exceptions.CreateCredentialException;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.text.StringsKt__StringsKt;
|
|
|
|
@SourceDebugExtension({"SMAP\nCreatePublicKeyCredentialException.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreatePublicKeyCredentialException.kt\nandroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialException\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,67:1\n1#2:68\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public class CreatePublicKeyCredentialException extends CreateCredentialException {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final String type;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public CreatePublicKeyCredentialException(String type) {
|
|
this(type, null, 2, 0 == true ? 1 : 0);
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public static final CreateCredentialException createFrom(String str, String str2) {
|
|
return Companion.createFrom(str, str2);
|
|
}
|
|
|
|
@Override // androidx.credentials.exceptions.CreateCredentialException
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public String getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public /* synthetic */ CreatePublicKeyCredentialException(String str, CharSequence charSequence, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, (i & 2) != 0 ? null : charSequence);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public CreatePublicKeyCredentialException(String type, CharSequence charSequence) {
|
|
super(type, charSequence);
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
this.type = type;
|
|
if (getType().length() <= 0) {
|
|
throw new IllegalArgumentException("type must not be empty".toString());
|
|
}
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public final CreateCredentialException createFrom(String type, String str) {
|
|
boolean contains$default;
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
try {
|
|
contains$default = StringsKt__StringsKt.contains$default(type, CreatePublicKeyCredentialDomException.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION, false, 2, null);
|
|
if (contains$default) {
|
|
return CreatePublicKeyCredentialDomException.Companion.createFrom(type, str);
|
|
}
|
|
throw new FrameworkClassParsingException();
|
|
} catch (FrameworkClassParsingException unused) {
|
|
return new CreateCredentialCustomException(type, str);
|
|
}
|
|
}
|
|
}
|
|
}
|