- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
122 lines
6.0 KiB
Java
122 lines
6.0 KiB
Java
package androidx.credentials;
|
|
|
|
import android.content.ComponentName;
|
|
import android.os.Bundle;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import androidx.credentials.internal.RequestValidationHelper;
|
|
import java.util.Set;
|
|
import kotlin.collections.SetsKt__SetsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class GetPublicKeyCredentialOption extends CredentialOption {
|
|
public static final String BUNDLE_KEY_CLIENT_DATA_HASH = "androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH";
|
|
public static final String BUNDLE_KEY_REQUEST_JSON = "androidx.credentials.BUNDLE_KEY_REQUEST_JSON";
|
|
public static final String BUNDLE_VALUE_SUBTYPE_GET_PUBLIC_KEY_CREDENTIAL_OPTION = "androidx.credentials.BUNDLE_VALUE_SUBTYPE_GET_PUBLIC_KEY_CREDENTIAL_OPTION";
|
|
public static final Companion Companion = new Companion(null);
|
|
private final byte[] clientDataHash;
|
|
private final String requestJson;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public GetPublicKeyCredentialOption(String requestJson) {
|
|
this(requestJson, null, null, 6, null);
|
|
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public GetPublicKeyCredentialOption(String requestJson, byte[] bArr) {
|
|
this(requestJson, bArr, null, 4, null);
|
|
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
|
|
}
|
|
|
|
public /* synthetic */ GetPublicKeyCredentialOption(String str, byte[] bArr, Set set, Bundle bundle, Bundle bundle2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, bArr, set, bundle, bundle2, i);
|
|
}
|
|
|
|
public final byte[] getClientDataHash() {
|
|
return this.clientDataHash;
|
|
}
|
|
|
|
public final String getRequestJson() {
|
|
return this.requestJson;
|
|
}
|
|
|
|
public /* synthetic */ GetPublicKeyCredentialOption(String str, byte[] bArr, Set set, Bundle bundle, Bundle bundle2, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, bArr, set, bundle, bundle2, (i2 & 32) != 0 ? 100 : i);
|
|
}
|
|
|
|
private GetPublicKeyCredentialOption(String str, byte[] bArr, Set<ComponentName> set, Bundle bundle, Bundle bundle2, int i) {
|
|
super(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, bundle, bundle2, false, true, set, i);
|
|
this.requestJson = str;
|
|
this.clientDataHash = bArr;
|
|
if (!RequestValidationHelper.Companion.isValidJSON(str)) {
|
|
throw new IllegalArgumentException("requestJson must not be empty, and must be a valid JSON".toString());
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ GetPublicKeyCredentialOption(String str, byte[] bArr, Set set, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, (i & 2) != 0 ? null : bArr, (i & 4) != 0 ? SetsKt__SetsKt.emptySet() : set);
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public GetPublicKeyCredentialOption(java.lang.String r11, byte[] r12, java.util.Set<android.content.ComponentName> r13) {
|
|
/*
|
|
r10 = this;
|
|
java.lang.String r0 = "requestJson"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r0)
|
|
java.lang.String r0 = "allowedProviders"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r13, r0)
|
|
androidx.credentials.GetPublicKeyCredentialOption$Companion r0 = androidx.credentials.GetPublicKeyCredentialOption.Companion
|
|
android.os.Bundle r5 = r0.toRequestDataBundle$credentials_release(r11, r12)
|
|
android.os.Bundle r6 = r0.toRequestDataBundle$credentials_release(r11, r12)
|
|
r7 = 0
|
|
r8 = 32
|
|
r9 = 0
|
|
r1 = r10
|
|
r2 = r11
|
|
r3 = r12
|
|
r4 = r13
|
|
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.GetPublicKeyCredentialOption.<init>(java.lang.String, byte[], java.util.Set):void");
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final Bundle toRequestDataBundle$credentials_release(String requestJson, byte[] bArr) {
|
|
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString(PublicKeyCredential.BUNDLE_KEY_SUBTYPE, GetPublicKeyCredentialOption.BUNDLE_VALUE_SUBTYPE_GET_PUBLIC_KEY_CREDENTIAL_OPTION);
|
|
bundle.putString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON", requestJson);
|
|
bundle.putByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH", bArr);
|
|
return bundle;
|
|
}
|
|
|
|
public final GetPublicKeyCredentialOption createFrom$credentials_release(Bundle data, Set<ComponentName> allowedProviders, Bundle candidateQueryData) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
Intrinsics.checkNotNullParameter(allowedProviders, "allowedProviders");
|
|
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
|
|
try {
|
|
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
|
|
byte[] byteArray = data.getByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH");
|
|
Intrinsics.checkNotNull(string);
|
|
return new GetPublicKeyCredentialOption(string, byteArray, allowedProviders, data, candidateQueryData, data.getInt(CredentialOption.BUNDLE_KEY_TYPE_PRIORITY_VALUE, 100), null);
|
|
} catch (Exception unused) {
|
|
throw new FrameworkClassParsingException();
|
|
}
|
|
}
|
|
}
|
|
}
|