| java.lang.Object | |
| ↳ | com.google.firebase.auth.UserRecord.CreateRequest |
A specification class for creating new user accounts. Set the initial attributes of the new user account by calling various setter methods available in this class. None of the attributes are required.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
CreateRequest()
Creates a new
UserRecord.CreateRequest, which can be used to create a new user. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| UserRecord.CreateRequest |
setDisabled(boolean disabled)
Sets whether the new user account should be disabled by default or not.
| ||||||||||
| UserRecord.CreateRequest |
setDisplayName(String displayName)
Sets the display name for the new user.
| ||||||||||
| UserRecord.CreateRequest |
setEmail(String email)
Sets an email address for the new user.
| ||||||||||
| UserRecord.CreateRequest |
setEmailVerified(boolean emailVerified)
Sets whether the user email address has been verified or not.
| ||||||||||
| UserRecord.CreateRequest |
setPassword(String password)
Sets the password for the new user.
| ||||||||||
| UserRecord.CreateRequest |
setPhoneNumber(String phone)
Sets a phone number for the new user.
| ||||||||||
| UserRecord.CreateRequest |
setPhotoUrl(String photoUrl)
Sets the photo URL for the new user.
| ||||||||||
| UserRecord.CreateRequest |
setUid(String uid)
Sets a user ID for the new user.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new UserRecord.CreateRequest, which can be used to create a new user. The returned
object should be passed to createUser(CreateRequest) to register
the user information persistently.
Sets whether the new user account should be disabled by default or not.
| disabled | a boolean indicating whether the new account should be disabled. |
|---|
Sets the display name for the new user.
| displayName | a non-null display name string. |
|---|
Sets an email address for the new user.
| a non-null, non-empty email address string. |
Sets whether the user email address has been verified or not.
| emailVerified | a boolean indicating the email verification status. |
|---|
Sets the password for the new user.
| password | a password string that is at least 6 characters long. |
|---|
Sets a phone number for the new user.
| phone | a non-null, non-empty phone number string. |
|---|
Sets the photo URL for the new user.
| photoUrl | a non-null, non-empty URL string. |
|---|
Sets a user ID for the new user.
| uid | a non-null, non-empty user ID that uniquely identifies the new user. The user ID must not be longer than 128 characters. |
|---|