Package com.firebase.ui.auth.util
Class CredentialUtils
- java.lang.Object
-
- com.firebase.ui.auth.util.CredentialUtils
-
public class CredentialUtils extends Object
Utility class for working withCredential
objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 specifiedFirebaseUser
with optional password andIdpResponse
.static com.google.android.gms.auth.api.credentials.Credential
buildCredentialOrThrow(com.google.firebase.auth.FirebaseUser user, String password, String accountType)
-
-
-
Method Detail
-
buildCredential
@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)
Build a credential for the specifiedFirebaseUser
with optional password andIdpResponse
.If the credential cannot be built (for example, empty email) then will return
null
.
-
-