CredentialsData.Builder

  • CredentialsData.Builder is a builder class forCredentialsData.

  • TheBuilder class includes a constructor and methods to build, set credentials, and set the credentials type for aCredentialsData object.

  • Thebuild() method creates aCredentialsData object.

  • ThesetCredentials() method sets the credentials for theCredentialsData object.

  • ThesetCredentialsType() method sets the type of credentials, with a default value ofCredentialsData.CREDENTIALS_TYPE_ANDROID.

public static classCredentialsData.Builder extendsObject

Builder forCredentialsData.

Public Constructor Summary

Public Method Summary

CredentialsData
CredentialsData.Builder
setCredentials(String credentials)
Sets the credentials.
CredentialsData.Builder
setCredentialsType(String credentialsType)
Sets the credentials type.

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
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

publicBuilder()

Public Methods

publicCredentialsDatabuild()

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.