- 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
66 lines
2.9 KiB
Java
66 lines
2.9 KiB
Java
package androidx.credentials;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import androidx.credentials.internal.RequestValidationHelper;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class PublicKeyCredential extends Credential {
|
|
public static final String BUNDLE_KEY_AUTHENTICATION_RESPONSE_JSON = "androidx.credentials.BUNDLE_KEY_AUTHENTICATION_RESPONSE_JSON";
|
|
public static final String BUNDLE_KEY_SUBTYPE = "androidx.credentials.BUNDLE_KEY_SUBTYPE";
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final String TYPE_PUBLIC_KEY_CREDENTIAL = "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL";
|
|
private final String authenticationResponseJson;
|
|
|
|
public /* synthetic */ PublicKeyCredential(String str, Bundle bundle, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, bundle);
|
|
}
|
|
|
|
public final String getAuthenticationResponseJson() {
|
|
return this.authenticationResponseJson;
|
|
}
|
|
|
|
private PublicKeyCredential(String str, Bundle bundle) {
|
|
super(TYPE_PUBLIC_KEY_CREDENTIAL, bundle);
|
|
this.authenticationResponseJson = str;
|
|
if (!RequestValidationHelper.Companion.isValidJSON(str)) {
|
|
throw new IllegalArgumentException("authenticationResponseJson must not be empty, and must be a valid JSON".toString());
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public PublicKeyCredential(String authenticationResponseJson) {
|
|
this(authenticationResponseJson, Companion.toBundle$credentials_release(authenticationResponseJson));
|
|
Intrinsics.checkNotNullParameter(authenticationResponseJson, "authenticationResponseJson");
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final Bundle toBundle$credentials_release(String authenticationResponseJson) {
|
|
Intrinsics.checkNotNullParameter(authenticationResponseJson, "authenticationResponseJson");
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString(PublicKeyCredential.BUNDLE_KEY_AUTHENTICATION_RESPONSE_JSON, authenticationResponseJson);
|
|
return bundle;
|
|
}
|
|
|
|
public final PublicKeyCredential createFrom$credentials_release(Bundle data) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
try {
|
|
String string = data.getString(PublicKeyCredential.BUNDLE_KEY_AUTHENTICATION_RESPONSE_JSON);
|
|
Intrinsics.checkNotNull(string);
|
|
return new PublicKeyCredential(string, data, null);
|
|
} catch (Exception unused) {
|
|
throw new FrameworkClassParsingException();
|
|
}
|
|
}
|
|
}
|
|
}
|