what-the-bank/sources/com/google/firebase/auth/PlayGamesAuthCredential.java

41 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.auth;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.internal.p002firebaseauthapi.zzaay;
/* loaded from: classes2.dex */
public class PlayGamesAuthCredential extends AuthCredential {
public static final Parcelable.Creator<PlayGamesAuthCredential> CREATOR = new zzaj();
private final String zza;
/* JADX INFO: Access modifiers changed from: package-private */
public PlayGamesAuthCredential(String str) {
this.zza = Preconditions.checkNotEmpty(str);
}
public static zzaay zzb(PlayGamesAuthCredential playGamesAuthCredential, String str) {
Preconditions.checkNotNull(playGamesAuthCredential);
return new zzaay(null, null, playGamesAuthCredential.getProvider(), null, null, playGamesAuthCredential.zza, str, null, null);
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, this.zza, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.firebase.auth.AuthCredential
public final AuthCredential zza() {
return new PlayGamesAuthCredential(this.zza);
}
@Override // com.google.firebase.auth.AuthCredential
public String getProvider() {
return "playgames.google.com";
}
}