424 lines
12 KiB
Smali
424 lines
12 KiB
Smali
.class public Lcom/google/firebase/auth/EmailAuthCredential;
|
|
.super Lcom/google/firebase/auth/AuthCredential;
|
|
.source "com.google.firebase:firebase-auth@@21.0.1"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Class;
|
|
creator = "EmailAuthCredentialCreator"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/google/firebase/auth/EmailAuthCredential;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private zza:Ljava/lang/String;
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
getter = "getEmail"
|
|
id = 0x1
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzb:Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
getter = "getPassword"
|
|
id = 0x2
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final zzc:Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
getter = "getSignInLink"
|
|
id = 0x3
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzd:Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
getter = "getCachedState"
|
|
id = 0x4
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zze:Z
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
getter = "isForLinking"
|
|
id = 0x5
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/google/firebase/auth/zzg;
|
|
|
|
invoke-direct {v0}, Lcom/google/firebase/auth/zzg;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/auth/EmailAuthCredential;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x1
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x2
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x3
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x4
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Z
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x5
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Constructor;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/firebase/auth/AuthCredential;-><init>()V
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zza:Ljava/lang/String;
|
|
|
|
.line 3
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Cannot create an EmailAuthCredential without a password or emailLink."
|
|
|
|
.line 4
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iput-object p2, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzb:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzc:Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzd:Ljava/lang/String;
|
|
|
|
iput-boolean p5, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zze:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zzi(Ljava/lang/String;)Z
|
|
.locals 2
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/google/firebase/auth/ActionCodeUrl;->parseLink(Ljava/lang/String;)Lcom/google/firebase/auth/ActionCodeUrl;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/firebase/auth/ActionCodeUrl;->getOperation()I
|
|
|
|
move-result p0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-ne p0, v0, :cond_1
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getProvider()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const-string v0, "password"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSignInMethod()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzb:Ljava/lang/String;
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "password"
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v0, "emailLink"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 3
|
|
.param p1 # Landroid/os/Parcel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->beginObjectHeader(Landroid/os/Parcel;)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zza:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 2
|
|
invoke-static {p1, v1, v0, v2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeString(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzb:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 3
|
|
invoke-static {p1, v1, v0, v2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeString(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzc:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
.line 4
|
|
invoke-static {p1, v1, v0, v2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeString(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzd:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
.line 5
|
|
invoke-static {p1, v1, v0, v2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeString(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
iget-boolean v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zze:Z
|
|
|
|
const/4 v1, 0x5
|
|
|
|
.line 6
|
|
invoke-static {p1, v1, v0}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeBoolean(Landroid/os/Parcel;IZ)V
|
|
|
|
.line 7
|
|
invoke-static {p1, p2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->finishObjectHeader(Landroid/os/Parcel;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zza()Lcom/google/firebase/auth/AuthCredential;
|
|
.locals 7
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
new-instance v6, Lcom/google/firebase/auth/EmailAuthCredential;
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zza:Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzb:Ljava/lang/String;
|
|
|
|
iget-object v3, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzc:Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzd:Ljava/lang/String;
|
|
|
|
iget-boolean v5, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zze:Z
|
|
|
|
move-object v0, v6
|
|
|
|
.line 1
|
|
invoke-direct/range {v0 .. v5}, Lcom/google/firebase/auth/EmailAuthCredential;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
|
|
|
|
return-object v6
|
|
.end method
|
|
|
|
.method public final zzb(Lcom/google/firebase/auth/FirebaseUser;)Lcom/google/firebase/auth/EmailAuthCredential;
|
|
.locals 0
|
|
.param p1 # Lcom/google/firebase/auth/FirebaseUser;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lcom/google/firebase/auth/FirebaseUser;->zzf()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzd:Ljava/lang/String;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zze:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final zzc()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzd:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zzd()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zza:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zze()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzb:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zzf()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzc:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zzg()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zzc:Ljava/lang/String;
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final zzh()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/google/firebase/auth/EmailAuthCredential;->zze:Z
|
|
|
|
return v0
|
|
.end method
|