what-the-bank/sources/com/google/firebase/auth/GithubAuthCredential.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 GithubAuthCredential extends AuthCredential {
public static final Parcelable.Creator<GithubAuthCredential> CREATOR = new zzab();
private String zza;
/* JADX INFO: Access modifiers changed from: package-private */
public GithubAuthCredential(String str) {
this.zza = Preconditions.checkNotEmpty(str);
}
public static zzaay zzb(GithubAuthCredential githubAuthCredential, String str) {
Preconditions.checkNotNull(githubAuthCredential);
return new zzaay(null, githubAuthCredential.zza, githubAuthCredential.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 GithubAuthCredential(this.zza);
}
@Override // com.google.firebase.auth.AuthCredential
public String getProvider() {
return "github.com";
}
}