public class CredentialUtils extends Object
Credential objects.| Modifier and Type | Method and Description |
|---|---|
static com.google.android.gms.auth.api.credentials.Credential |
buildCredential(com.google.firebase.auth.FirebaseUser user,
String password,
String accountType)
Build a credential for the specified
FirebaseUser with optional password and IdpResponse. |
static com.google.android.gms.auth.api.credentials.Credential |
buildCredentialOrThrow(com.google.firebase.auth.FirebaseUser user,
String password,
String accountType) |
@Nullable
public static com.google.android.gms.auth.api.credentials.Credential buildCredential(@NonNull
com.google.firebase.auth.FirebaseUser user,
@Nullable
String password,
@Nullable
String accountType)
FirebaseUser with optional password and IdpResponse.
If the credential cannot be built (for example, empty email) then will return null.