UserProvider.Builder

public static class UserProvider.Builder extends Object

Public Method Summary

UserProvider
build()
Builds a new UserProvider.
UserProvider.Builder
setDisplayName(String displayName)
Sets the user's display name.
UserProvider.Builder
setEmail(String email)
Sets the user's email address.
UserProvider.Builder
setPhotoUrl(String photoUrl)
Sets the photo URl of the user.
UserProvider.Builder
setProviderId(String providerId)
Sets the ID of the identity provider.
UserProvider.Builder
setUid(String uid)
Sets the user's unique ID assigned by the identity provider.

Inherited Method Summary

Public Methods

public UserProvider build ()

Builds a new UserProvider.

Returns

public UserProvider.Builder setDisplayName (String displayName)

Sets the user's display name.

Parameters
displayName display name of the user.
Returns
  • This builder.

public UserProvider.Builder setEmail (String email)

Sets the user's email address.

Parameters
email an email address string.
Returns
  • This builder.

public UserProvider.Builder setPhotoUrl (String photoUrl)

Sets the photo URl of the user.

Parameters
photoUrl a photo URL string.
Returns
  • This builder.

public UserProvider.Builder setProviderId (String providerId)

Sets the ID of the identity provider. This can be a short domain name (e.g. google.com) or the identifier of an OpenID identity provider. This field is required.

Parameters
providerId an ID string that uniquely identifies the identity provider.
Returns
  • This builder.

public UserProvider.Builder setUid (String uid)

Sets the user's unique ID assigned by the identity provider. This field is required.

Parameters
uid a user ID string.
Returns
  • This builder.

Send feedback about...

Need help? Visit our support page.