- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
216 lines
22 KiB
Java
216 lines
22 KiB
Java
package androidx.credentials.exceptions.publickeycredential;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.exceptions.GetCredentialCustomException;
|
|
import androidx.credentials.exceptions.GetCredentialException;
|
|
import androidx.credentials.exceptions.domerrors.AbortError;
|
|
import androidx.credentials.exceptions.domerrors.ConstraintError;
|
|
import androidx.credentials.exceptions.domerrors.DataCloneError;
|
|
import androidx.credentials.exceptions.domerrors.DataError;
|
|
import androidx.credentials.exceptions.domerrors.DomError;
|
|
import androidx.credentials.exceptions.domerrors.EncodingError;
|
|
import androidx.credentials.exceptions.domerrors.HierarchyRequestError;
|
|
import androidx.credentials.exceptions.domerrors.InUseAttributeError;
|
|
import androidx.credentials.exceptions.domerrors.InvalidCharacterError;
|
|
import androidx.credentials.exceptions.domerrors.InvalidModificationError;
|
|
import androidx.credentials.exceptions.domerrors.InvalidNodeTypeError;
|
|
import androidx.credentials.exceptions.domerrors.InvalidStateError;
|
|
import androidx.credentials.exceptions.domerrors.NamespaceError;
|
|
import androidx.credentials.exceptions.domerrors.NetworkError;
|
|
import androidx.credentials.exceptions.domerrors.NoModificationAllowedError;
|
|
import androidx.credentials.exceptions.domerrors.NotAllowedError;
|
|
import androidx.credentials.exceptions.domerrors.NotFoundError;
|
|
import androidx.credentials.exceptions.domerrors.NotReadableError;
|
|
import androidx.credentials.exceptions.domerrors.NotSupportedError;
|
|
import androidx.credentials.exceptions.domerrors.OperationError;
|
|
import androidx.credentials.exceptions.domerrors.OptOutError;
|
|
import androidx.credentials.exceptions.domerrors.QuotaExceededError;
|
|
import androidx.credentials.exceptions.domerrors.ReadOnlyError;
|
|
import androidx.credentials.exceptions.domerrors.SecurityError;
|
|
import androidx.credentials.exceptions.domerrors.SyntaxError;
|
|
import androidx.credentials.exceptions.domerrors.TimeoutError;
|
|
import androidx.credentials.exceptions.domerrors.TransactionInactiveError;
|
|
import androidx.credentials.exceptions.domerrors.UnknownError;
|
|
import androidx.credentials.exceptions.domerrors.VersionError;
|
|
import androidx.credentials.exceptions.domerrors.WrongDocumentError;
|
|
import androidx.credentials.exceptions.publickeycredential.DomExceptionUtils;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class GetPublicKeyCredentialDomException extends GetPublicKeyCredentialException {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final String TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION = "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION";
|
|
private final DomError domError;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public GetPublicKeyCredentialDomException(DomError domError) {
|
|
this(domError, null, 2, 0 == true ? 1 : 0);
|
|
Intrinsics.checkNotNullParameter(domError, "domError");
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public static final GetCredentialException createFrom(String str, String str2) {
|
|
return Companion.createFrom(str, str2);
|
|
}
|
|
|
|
public final DomError getDomError() {
|
|
return this.domError;
|
|
}
|
|
|
|
public /* synthetic */ GetPublicKeyCredentialDomException(DomError domError, CharSequence charSequence, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(domError, (i & 2) != 0 ? null : charSequence);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public GetPublicKeyCredentialDomException(DomError domError, CharSequence charSequence) {
|
|
super("androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + domError.getType(), charSequence);
|
|
Intrinsics.checkNotNullParameter(domError, "domError");
|
|
this.domError = domError;
|
|
}
|
|
|
|
@SourceDebugExtension({"SMAP\nGetPublicKeyCredentialDomException.kt\nKotlin\n*S Kotlin\n*F\n+ 1 GetPublicKeyCredentialDomException.kt\nandroidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException$Companion\n+ 2 DomExceptionUtils.kt\nandroidx/credentials/exceptions/publickeycredential/DomExceptionUtils$Companion\n*L\n1#1,67:1\n67#2,75:68\n*S KotlinDebug\n*F\n+ 1 GetPublicKeyCredentialDomException.kt\nandroidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException$Companion\n*L\n53#1:68,75\n*E\n"})
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public final GetCredentialException createFrom(String type, String str) {
|
|
Object generateException;
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
try {
|
|
DomExceptionUtils.Companion companion = DomExceptionUtils.Companion;
|
|
GetPublicKeyCredentialDomException getPublicKeyCredentialDomException = new GetPublicKeyCredentialDomException(new UnknownError(), null, 2, 0 == true ? 1 : 0);
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + AbortError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ABORT_ERROR)) {
|
|
generateException = companion.generateException(new AbortError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + ConstraintError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_CONSTRAINT_ERROR)) {
|
|
generateException = companion.generateException(new ConstraintError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + DataCloneError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_CLONE_ERROR)) {
|
|
generateException = companion.generateException(new DataCloneError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + DataError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_ERROR)) {
|
|
generateException = companion.generateException(new DataError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + EncodingError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ENCODING_ERROR)) {
|
|
generateException = companion.generateException(new EncodingError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + HierarchyRequestError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_HIERARCHY_REQUEST_ERROR)) {
|
|
generateException = companion.generateException(new HierarchyRequestError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InUseAttributeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_IN_USE_ATTRIBUTE_ERROR)) {
|
|
generateException = companion.generateException(new InUseAttributeError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidCharacterError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_CHARACTER_ERROR)) {
|
|
generateException = companion.generateException(new InvalidCharacterError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidModificationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_MODIFICATION_ERROR)) {
|
|
generateException = companion.generateException(new InvalidModificationError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidNodeTypeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_NODE_TYPE_ERROR)) {
|
|
generateException = companion.generateException(new InvalidNodeTypeError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidStateError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_STATE_ERROR)) {
|
|
generateException = companion.generateException(new InvalidStateError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NamespaceError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NAMESPACE_ERROR)) {
|
|
generateException = companion.generateException(new NamespaceError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NetworkError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NETWORK_ERROR)) {
|
|
generateException = companion.generateException(new NetworkError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NoModificationAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NO_MODIFICATION_ALLOWED_ERROR)) {
|
|
generateException = companion.generateException(new NoModificationAllowedError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_ALLOWED_ERROR)) {
|
|
generateException = companion.generateException(new NotAllowedError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotFoundError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_FOUND_ERROR)) {
|
|
generateException = companion.generateException(new NotFoundError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotReadableError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_READABLE_ERROR)) {
|
|
generateException = companion.generateException(new NotReadableError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotSupportedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_SUPPORTED_ERROR)) {
|
|
generateException = companion.generateException(new NotSupportedError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + OperationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPERATION_ERROR)) {
|
|
generateException = companion.generateException(new OperationError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + OptOutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPT_OUT_ERROR)) {
|
|
generateException = companion.generateException(new OptOutError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + QuotaExceededError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_QUOTA_EXCEEDED_ERROR)) {
|
|
generateException = companion.generateException(new QuotaExceededError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + ReadOnlyError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_READ_ONLY_ERROR)) {
|
|
generateException = companion.generateException(new ReadOnlyError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + SecurityError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SECURITY_ERROR)) {
|
|
generateException = companion.generateException(new SecurityError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + SyntaxError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SYNTAX_ERROR)) {
|
|
generateException = companion.generateException(new SyntaxError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + TimeoutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TIMEOUT_ERROR)) {
|
|
generateException = companion.generateException(new TimeoutError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + TransactionInactiveError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TRANSACTION_INACTIVE_ERROR)) {
|
|
generateException = companion.generateException(new TransactionInactiveError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + UnknownError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_UNKNOWN_ERROR)) {
|
|
generateException = companion.generateException(new UnknownError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + VersionError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_VERSION_ERROR)) {
|
|
generateException = companion.generateException(new VersionError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + WrongDocumentError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_WRONG_DOCUMENT_ERROR)) {
|
|
generateException = companion.generateException(new WrongDocumentError(), str, getPublicKeyCredentialDomException);
|
|
} else {
|
|
throw new FrameworkClassParsingException();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return (GetCredentialException) generateException;
|
|
} catch (FrameworkClassParsingException unused) {
|
|
return new GetCredentialCustomException(type, str);
|
|
}
|
|
}
|
|
}
|
|
}
|