IdentityProviders

public final class IdentityProviders extends Object

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

Constant Summary

String FACEBOOK
String GOOGLE
String LINKEDIN
String MICROSOFT
String PAYPAL
String TWITTER
String YAHOO

Public Method Summary

static 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.

Inherited Method Summary

Constants

public static final String FACEBOOK

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

public static final String GOOGLE

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

public static final String LINKEDIN

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

public static final String MICROSOFT

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

public static final String PAYPAL

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

public static final String TWITTER

Constant Value: "//twitter.com"

public static final String YAHOO

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

Public Methods

public static 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 an account on the device.
Returns
  • The identity provider string for use with the Credentials API, or null if the account type is unknown.