CredentialsData.Builder Stay organized with collections Save and categorize content based on your preferences.
Page Summary
CredentialsData.Builderis a builder class forCredentialsData.The
Builderclass includes a constructor and methods to build, set credentials, and set the credentials type for aCredentialsDataobject.The
build()method creates aCredentialsDataobject.The
setCredentials()method sets the credentials for theCredentialsDataobject.The
setCredentialsType()method sets the type of credentials, with a default value ofCredentialsData.CREDENTIALS_TYPE_ANDROID.
Builder forCredentialsData.
Public Constructor Summary
Builder() |
Public Method Summary
| CredentialsData | build() Builds a CredentialsData. |
| CredentialsData.Builder | |
| CredentialsData.Builder |
Inherited Method Summary
Public Constructors
publicBuilder()
Public Methods
publicCredentialsDatabuild()
Builds aCredentialsData.
publicCredentialsData.BuildersetCredentials(String credentials)
Sets the credentials.
SeeCredentialsData.getCredentials() for details.
publicCredentialsData.BuildersetCredentialsType(String credentialsType)
Sets the credentials type. The default value is CredentialsData.CREDENTIALS_TYPE_ANDROID.
See CredentialsData.getCredentialsType() for details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.