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

44 lines
1.7 KiB
Java
Raw 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 TwitterAuthCredential extends AuthCredential {
public static final Parcelable.Creator<TwitterAuthCredential> CREATOR = new zzak();
private String zza;
private String zzb;
/* JADX INFO: Access modifiers changed from: package-private */
public TwitterAuthCredential(String str, String str2) {
this.zza = Preconditions.checkNotEmpty(str);
this.zzb = Preconditions.checkNotEmpty(str2);
}
public static zzaay zzb(TwitterAuthCredential twitterAuthCredential, String str) {
Preconditions.checkNotNull(twitterAuthCredential);
return new zzaay(null, twitterAuthCredential.zza, twitterAuthCredential.getProvider(), null, twitterAuthCredential.zzb, null, 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.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.firebase.auth.AuthCredential
public final AuthCredential zza() {
return new TwitterAuthCredential(this.zza, this.zzb);
}
@Override // com.google.firebase.auth.AuthCredential
public String getProvider() {
return "twitter.com";
}
}