Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static final class

# CredentialRequest.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.auth.api.credentials.CredentialRequest.Builder

## Summary

Public Constructors
| CredentialRequest.Builder()

Public Methods
CredentialRequest | build() Builds a `CredentialRequest`.
CredentialRequest.Builder | setAccountTypes(String... accountTypes) Sets the account types (identity providers) that are accepted by this application.
CredentialRequest.Builder | setCredentialHintPickerConfig(CredentialPickerConfig config) Sets the configuration for credential hint picker.
CredentialRequest.Builder | setCredentialPickerConfig(CredentialPickerConfig config) Sets the configuration for credential picker.
CredentialRequest.Builder | setPasswordLoginSupported(boolean passwordLoginSupported) Enables returning `credentials` with a password, that is verified by the application.
CredentialRequest.Builder | setSupportsPasswordLogin(boolean supportsPasswordLogin) This method is deprecated. Use `setPasswordLoginSupported(boolean)`.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public CredentialRequest.Builder ()

## Public Methods

#### public CredentialRequest build ()

Builds a `CredentialRequest`.

#### public CredentialRequest.Builder setAccountTypes (String... accountTypes)

Sets the account types (identity providers) that are accepted by this application. It is strongly recommended that the strings listed in `IdentityProviders` be used for the most common identity providers, and strings representing the login domain of the identity provider be used for any others which are not listed.

##### Parameters

accountTypes | The list of account types (identity providers) supported by the app. typically in the form of the associated login domain for each identity provider.

#### public CredentialRequest.Builder setCredentialHintPickerConfig (CredentialPickerConfig config)

Sets the configuration for credential hint picker.

#### public CredentialRequest.Builder setCredentialPickerConfig (CredentialPickerConfig config)

Sets the configuration for credential picker.

#### public CredentialRequest.Builder setPasswordLoginSupported (boolean passwordLoginSupported)

Enables returning `credentials` with a password, that is verified by the application.

#### public CredentialRequest.Builder setSupportsPasswordLogin (boolean supportsPasswordLogin)

This method is deprecated.
Use `setPasswordLoginSupported(boolean)`.