Google is committed to advancing racial equity for Black communities. See how.

SignInCredential

public final class SignInCredential extends Object
implements Parcelable

The credential returned as a result of a successful sign-in. Data returned within this object depends on the type of credential that user has selected; for example a password is returned only when a password-backed credential was selected.

Inherited Constant Summary

Field Summary

public static final Creator<SignInCredential> CREATOR

Public Method Summary

boolean
String
String
String
String
String
getId()
Returns the identifier of the credential.
String
Uri
int
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<SignInCredential> CREATOR

Public Methods

public boolean equals (Object o)

public String getDisplayName ()

public String getFamilyName ()

public String getGivenName ()

public String getGoogleIdToken ()

public String getId ()

Returns the identifier of the credential. For an ID token credential, this returns the email address of the user's account and for a password-backed credential, it returns the username for that password.

public String getPassword ()

public Uri getProfilePictureUri ()

public int hashCode ()

public void writeToParcel (Parcel dest, int flags)