- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
156 lines
7.5 KiB
Java
156 lines
7.5 KiB
Java
package androidx.credentials;
|
|
|
|
import android.content.ComponentName;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
import java.util.Set;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class CredentialOption {
|
|
public static final String BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED = "androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED";
|
|
public static final String BUNDLE_KEY_TYPE_PRIORITY_VALUE = "androidx.credentials.BUNDLE_KEY_TYPE_PRIORITY_VALUE";
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final int PRIORITY_DEFAULT = 2000;
|
|
public static final int PRIORITY_OIDC_OR_SIMILAR = 500;
|
|
public static final int PRIORITY_PASSKEY_OR_SIMILAR = 100;
|
|
public static final int PRIORITY_PASSWORD_OR_SIMILAR = 1000;
|
|
private final Set<ComponentName> allowedProviders;
|
|
private final Bundle candidateQueryData;
|
|
private final boolean isAutoSelectAllowed;
|
|
private final boolean isSystemProviderRequired;
|
|
private final Bundle requestData;
|
|
private final String type;
|
|
private final int typePriorityHint;
|
|
|
|
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public @interface PriorityHints {
|
|
}
|
|
|
|
@RequiresApi(34)
|
|
public static final CredentialOption createFrom(android.credentials.CredentialOption credentialOption) {
|
|
return Companion.createFrom(credentialOption);
|
|
}
|
|
|
|
public static final CredentialOption createFrom(String str, Bundle bundle, Bundle bundle2, boolean z, Set<ComponentName> set) {
|
|
return Companion.createFrom(str, bundle, bundle2, z, set);
|
|
}
|
|
|
|
public final Set<ComponentName> getAllowedProviders() {
|
|
return this.allowedProviders;
|
|
}
|
|
|
|
public final Bundle getCandidateQueryData() {
|
|
return this.candidateQueryData;
|
|
}
|
|
|
|
public final Bundle getRequestData() {
|
|
return this.requestData;
|
|
}
|
|
|
|
public final String getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public final int getTypePriorityHint() {
|
|
return this.typePriorityHint;
|
|
}
|
|
|
|
public final boolean isAutoSelectAllowed() {
|
|
return this.isAutoSelectAllowed;
|
|
}
|
|
|
|
public final boolean isSystemProviderRequired() {
|
|
return this.isSystemProviderRequired;
|
|
}
|
|
|
|
public CredentialOption(String type, Bundle requestData, Bundle candidateQueryData, boolean z, boolean z2, Set<ComponentName> allowedProviders, int i) {
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
Intrinsics.checkNotNullParameter(requestData, "requestData");
|
|
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
|
|
Intrinsics.checkNotNullParameter(allowedProviders, "allowedProviders");
|
|
this.type = type;
|
|
this.requestData = requestData;
|
|
this.candidateQueryData = candidateQueryData;
|
|
this.isSystemProviderRequired = z;
|
|
this.isAutoSelectAllowed = z2;
|
|
this.allowedProviders = allowedProviders;
|
|
this.typePriorityHint = i;
|
|
requestData.putBoolean("androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED", z2);
|
|
candidateQueryData.putBoolean("androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED", z2);
|
|
requestData.putInt(BUNDLE_KEY_TYPE_PRIORITY_VALUE, i);
|
|
candidateQueryData.putInt(BUNDLE_KEY_TYPE_PRIORITY_VALUE, i);
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final boolean extractAutoSelectValue$credentials_release(Bundle data) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
return data.getBoolean("androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED");
|
|
}
|
|
|
|
@RequiresApi(34)
|
|
public final CredentialOption createFrom(android.credentials.CredentialOption option) {
|
|
String type;
|
|
Bundle credentialRetrievalData;
|
|
Bundle candidateQueryData;
|
|
boolean isSystemProviderRequired;
|
|
Set<ComponentName> allowedProviders;
|
|
Intrinsics.checkNotNullParameter(option, "option");
|
|
type = option.getType();
|
|
Intrinsics.checkNotNullExpressionValue(type, "option.type");
|
|
credentialRetrievalData = option.getCredentialRetrievalData();
|
|
Intrinsics.checkNotNullExpressionValue(credentialRetrievalData, "option.credentialRetrievalData");
|
|
candidateQueryData = option.getCandidateQueryData();
|
|
Intrinsics.checkNotNullExpressionValue(candidateQueryData, "option.candidateQueryData");
|
|
isSystemProviderRequired = option.isSystemProviderRequired();
|
|
allowedProviders = option.getAllowedProviders();
|
|
Intrinsics.checkNotNullExpressionValue(allowedProviders, "option.allowedProviders");
|
|
return createFrom(type, credentialRetrievalData, candidateQueryData, isSystemProviderRequired, allowedProviders);
|
|
}
|
|
|
|
public final CredentialOption createFrom(String type, Bundle requestData, Bundle candidateQueryData, boolean z, Set<ComponentName> allowedProviders) {
|
|
Intrinsics.checkNotNullParameter(type, "type");
|
|
Intrinsics.checkNotNullParameter(requestData, "requestData");
|
|
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
|
|
Intrinsics.checkNotNullParameter(allowedProviders, "allowedProviders");
|
|
try {
|
|
int hashCode = type.hashCode();
|
|
if (hashCode != -1678407252) {
|
|
if (hashCode != -543568185) {
|
|
if (hashCode == -95037569 && type.equals(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
|
|
String string = requestData.getString(PublicKeyCredential.BUNDLE_KEY_SUBTYPE);
|
|
if (string != null && string.hashCode() == -613058807 && string.equals(GetPublicKeyCredentialOption.BUNDLE_VALUE_SUBTYPE_GET_PUBLIC_KEY_CREDENTIAL_OPTION)) {
|
|
return GetPublicKeyCredentialOption.Companion.createFrom$credentials_release(requestData, allowedProviders, candidateQueryData);
|
|
}
|
|
throw new FrameworkClassParsingException();
|
|
}
|
|
} else if (type.equals(PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
|
|
return GetPasswordOption.Companion.createFrom$credentials_release(requestData, allowedProviders, candidateQueryData);
|
|
}
|
|
} else if (type.equals(DigitalCredential.TYPE_DIGITAL_CREDENTIAL)) {
|
|
return GetDigitalCredentialOption.Companion.createFrom$credentials_release(requestData, candidateQueryData, z, allowedProviders);
|
|
}
|
|
throw new FrameworkClassParsingException();
|
|
} catch (FrameworkClassParsingException unused) {
|
|
return new GetCustomCredentialOption(requestData, type, candidateQueryData, z, requestData.getBoolean("androidx.credentials.BUNDLE_KEY_IS_AUTO_SELECT_ALLOWED", false), allowedProviders, requestData.getInt(CredentialOption.BUNDLE_KEY_TYPE_PRIORITY_VALUE, 2000));
|
|
}
|
|
}
|
|
}
|
|
}
|