public final class

IdentityProviders

extends Object
java.lang.Object
   ↳ com.google.android.gms.auth.api.credentials.IdentityProviders

Class Overview

Identity provider constants for use with CredentialRequest.Builder.setAccountTypes().

Summary

Constants
String FACEBOOK
String GOOGLE
String LINKEDIN
String MICROSOFT
String PAYPAL
String TWITTER
String YAHOO
Public Methods
static final String getIdentityProviderForAccount(Account account)
Attempts to translate the account type in the provided account into the string that should be used in the credentials API.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String FACEBOOK

Constant Value: "https://www.facebook.com"

public static final String GOOGLE

Constant Value: "https://accounts.google.com"

public static final String LINKEDIN

Constant Value: "https://www.linkedin.com"

public static final String MICROSOFT

Constant Value: "https://login.live.com"

public static final String PAYPAL

Constant Value: "https://www.paypal.com"

public static final String TWITTER

Constant Value: "https://twitter.com"

public static final String YAHOO

Constant Value: "https://login.yahoo.com"

Public Methods

public static final String getIdentityProviderForAccount (Account account)

Attempts to translate the account type in the provided account into the string that should be used in the credentials API.

Parameters
account Account: an account on the device.
Returns
String The identity provider string for use with the Credentials API, or null if the account type is unknown.