public final class IdentityProviders extends Object
This class is deprecated.
APIs in CredentialsClient
are deprecated. Instead, use SignInClient
and CredentialSavingClient
.
Identity provider constants for use with
CredentialRequest.Builder.setAccountTypes()
.
Constant Summary
String | ||
String | ||
String | ||
String | MICROSOFT | |
String | PAYPAL | |
String | ||
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.