CredentialRequest

public final class CredentialRequest extends AbstractSafeParcelable

Parameters for requesting a Credential, via request(com.google.android.gms.common.api.GoogleApiClient, CredentialRequest).

Instances can be created using CredentialRequest.Builder. For a typical application that supports password based authentication and Google sign-in, the CredentialRequest would look like:

CredentialRequest request = new CredentialRequest.Builder()
         .setAccountTypes(IdentityProviders.GOOGLE)
         .setPasswordLoginSupported(true)
         .build();
 

Nested Class Summary

class CredentialRequest.Builder  

Inherited Constant Summary

Field Summary

public static final Creator<CredentialRequest> CREATOR

Public Method Summary

String[]
Set<String>
CredentialPickerConfig
CredentialPickerConfig
String
String
boolean
getSupportsPasswordLogin()
This method was deprecated. Use isPasswordLoginSupported()
boolean
boolean
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Fields

public static final Creator<CredentialRequest> CREATOR

Public Methods

public String[] getAccountTypes ()

public Set<String> getAccountTypesSet ()

public CredentialPickerConfig getCredentialHintPickerConfig ()

public CredentialPickerConfig getCredentialPickerConfig ()

public String getIdTokenNonce ()

public String getServerClientId ()

public boolean getSupportsPasswordLogin ()

This method was deprecated.
Use isPasswordLoginSupported()

public boolean isIdTokenRequested ()

public boolean isPasswordLoginSupported ()

public void writeToParcel (Parcel out, int flags)