Files
rr3-apk/decompiled/sources/com/google/android/libraries/identity/googleid/GetSignInWithGoogleOption.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

76 lines
3.6 KiB
Java

package com.google.android.libraries.identity.googleid;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.credentials.GetCustomCredentialOption;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nGetSignInWithGoogleOption.kt\nKotlin\n*S Kotlin\n*F\n+ 1 GetSignInWithGoogleOption.kt\ncom/google/android/libraries/identity/googleid/GetSignInWithGoogleOption\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,124:1\n1#2:125\n*E\n"})
/* loaded from: classes3.dex */
public final class GetSignInWithGoogleOption extends GetCustomCredentialOption {
public static final Companion Companion = new Companion(null);
private final String zza;
private final String zzb;
private final String zzc;
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
}
public static final Bundle zza(String serverClientId, String str, String str2, boolean z) {
Intrinsics.checkNotNullParameter(serverClientId, "serverClientId");
Bundle bundle = new Bundle();
bundle.putString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_SERVER_CLIENT_ID", serverClientId);
bundle.putString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_NONCE", str2);
bundle.putString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_HOSTED_DOMAIN_FILTER", str);
bundle.putBoolean("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_AUTO_SELECT_ENABLED", true);
bundle.putString(GoogleIdTokenCredential.BUNDLE_KEY_GOOGLE_ID_TOKEN_SUBTYPE, GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_SIWG_CREDENTIAL);
return bundle;
}
public final GetSignInWithGoogleOption createFrom(Bundle data) {
Intrinsics.checkNotNullParameter(data, "data");
try {
String string = data.getString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_SERVER_CLIENT_ID");
Intrinsics.checkNotNull(string);
return new GetSignInWithGoogleOption(string, data.getString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_HOSTED_DOMAIN_FILTER"), data.getString("com.google.android.libraries.identity.googleid.siwg.BUNDLE_KEY_NONCE"));
} catch (Exception e) {
throw new GoogleIdTokenParsingException(e);
}
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public GetSignInWithGoogleOption(@NonNull String serverClientId, String str, String str2) {
super(GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_CREDENTIAL, Companion.zza(serverClientId, str, str2, true), Companion.zza(serverClientId, str, str2, true), true, true, null, 32, null);
Intrinsics.checkNotNullParameter(serverClientId, "serverClientId");
this.zza = serverClientId;
this.zzb = str;
this.zzc = str2;
if (serverClientId.length() <= 0) {
throw new IllegalArgumentException("serverClientId should not be empty");
}
}
public static final GetSignInWithGoogleOption createFrom(@NonNull Bundle bundle) {
return Companion.createFrom(bundle);
}
@Nullable
public final String getHostedDomainFilter() {
return this.zzb;
}
@Nullable
public final String getNonce() {
return this.zzc;
}
public final String getServerClientId() {
return this.zza;
}
}