41 lines
1.5 KiB
Java
41 lines
1.5 KiB
Java
|
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 FacebookAuthCredential extends AuthCredential {
|
||
|
public static final Parcelable.Creator<FacebookAuthCredential> CREATOR = new zzh();
|
||
|
private final String zza;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public FacebookAuthCredential(String str) {
|
||
|
this.zza = Preconditions.checkNotEmpty(str);
|
||
|
}
|
||
|
|
||
|
public static zzaay zzb(FacebookAuthCredential facebookAuthCredential, String str) {
|
||
|
Preconditions.checkNotNull(facebookAuthCredential);
|
||
|
return new zzaay(null, facebookAuthCredential.zza, facebookAuthCredential.getProvider(), null, null, 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.finishObjectHeader(parcel, beginObjectHeader);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.firebase.auth.AuthCredential
|
||
|
public final AuthCredential zza() {
|
||
|
return new FacebookAuthCredential(this.zza);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.firebase.auth.AuthCredential
|
||
|
public String getProvider() {
|
||
|
return "facebook.com";
|
||
|
}
|
||
|
}
|