| java.lang.Object | |
| ↳ | com.google.firebase.auth.multitenancy.TenantManager |
This class can be used to perform a variety of tenant-related operations, including creating, updating, and listing tenants.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Tenant |
createTenant(Tenant.CreateRequest request)
Creates a new tenant with the attributes contained in the specified
Tenant.CreateRequest. | ||||||||||
| ApiFuture<Tenant> |
createTenantAsync(Tenant.CreateRequest request)
Similar to
createTenant(CreateRequest) but performs the operation asynchronously. | ||||||||||
| void |
deleteTenant(String tenantId)
Deletes the tenant identified by the specified tenant ID.
| ||||||||||
| ApiFuture<Void> |
deleteTenantAsync(String tenantId)
Similar to
deleteTenant(String) but performs the operation asynchronously. | ||||||||||
| synchronized TenantAwareFirebaseAuth | getAuthForTenant(String tenantId) | ||||||||||
| Tenant |
getTenant(String tenantId)
Gets the tenant corresponding to the specified tenant ID.
| ||||||||||
| ApiFuture<Tenant> |
getTenantAsync(String tenantId)
Similar to
getTenant(String) but performs the operation asynchronously. | ||||||||||
| ListTenantsPage |
listTenants(String pageToken, int maxResults)
Gets a page of tenants starting from the specified
pageToken. | ||||||||||
| ListTenantsPage |
listTenants(String pageToken)
Gets a page of tenants starting from the specified
pageToken. | ||||||||||
| ApiFuture<ListTenantsPage> |
listTenantsAsync(String pageToken)
Similar to
listTenants(String) but performs the operation asynchronously. | ||||||||||
| ApiFuture<ListTenantsPage> |
listTenantsAsync(String pageToken, int maxResults)
Similar to
listTenants(String, int) but performs the operation asynchronously. | ||||||||||
| Tenant |
updateTenant(Tenant.UpdateRequest request)
Updates an existing user account with the attributes contained in the specified
Tenant.UpdateRequest. | ||||||||||
| ApiFuture<Tenant> |
updateTenantAsync(Tenant.UpdateRequest request)
Similar to
updateTenant(UpdateRequest) but performs the operation asynchronously. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new tenant with the attributes contained in the specified Tenant.CreateRequest.
| request | A non-null Tenant.CreateRequest instance. |
|---|
Tenant instance corresponding to the newly created tenant.| NullPointerException | if the provided request is null. |
|---|---|
| FirebaseAuthException | if an error occurs while creating the tenant. |
Similar to createTenant(CreateRequest) but performs the operation asynchronously.
| request | A non-null Tenant.CreateRequest instance. |
|---|
ApiFuture which will complete successfully with a Tenant
instance corresponding to the newly created tenant. If an error occurs while creating the
tenant, the future throws a FirebaseAuthException.| NullPointerException | if the provided request is null. |
|---|
Deletes the tenant identified by the specified tenant ID.
| tenantId | A tenant ID string. |
|---|
| IllegalArgumentException | If the tenant ID string is null or empty. |
|---|---|
| FirebaseAuthException | If an error occurs while deleting the tenant. |
Similar to deleteTenant(String) but performs the operation asynchronously.
| tenantId | A tenant ID string. |
|---|
ApiFuture which will complete successfully when the specified tenant account
has been deleted. If an error occurs while deleting the tenant account, the future throws a
FirebaseAuthException.| IllegalArgumentException | If the tenant ID string is null or empty. |
|---|
Gets the tenant corresponding to the specified tenant ID.
| tenantId | A tenant ID string. |
|---|
Tenant instance.| IllegalArgumentException | If the tenant ID string is null or empty. |
|---|---|
| FirebaseAuthException | If an error occurs while retrieving user data. |
Similar to getTenant(String) but performs the operation asynchronously.
| tenantId | A tenantId string. |
|---|
ApiFuture which will complete successfully with a Tenant instance
If an error occurs while retrieving tenant data or if the specified tenant ID does not
exist, the future throws a FirebaseAuthException.| IllegalArgumentException | If the tenant ID string is null or empty. |
|---|
Gets a page of tenants starting from the specified pageToken.
| pageToken | A non-empty page token string, or null to retrieve the first page of tenants. |
|---|---|
| maxResults | Maximum number of tenants to include in the returned page. This may not exceed 1000. |
ListTenantsPage instance.| IllegalArgumentException | If the specified page token is empty, or max results value is invalid. |
|---|---|
| FirebaseAuthException | If an error occurs while retrieving tenant data. |
Gets a page of tenants starting from the specified pageToken. Page size will be limited
to 1000 tenants.
| pageToken | A non-empty page token string, or null to retrieve the first page of tenants. |
|---|
ListTenantsPage instance.| IllegalArgumentException | If the specified page token is empty. |
|---|---|
| FirebaseAuthException | If an error occurs while retrieving tenant data. |
Similar to listTenants(String) but performs the operation asynchronously.
| pageToken | A non-empty page token string, or null to retrieve the first page of tenants. |
|---|
ApiFuture which will complete successfully with a ListTenantsPage
instance. If an error occurs while retrieving tenant data, the future throws an exception.| IllegalArgumentException | If the specified page token is empty. |
|---|
Similar to listTenants(String, int) but performs the operation asynchronously.
| pageToken | A non-empty page token string, or null to retrieve the first page of tenants. |
|---|---|
| maxResults | Maximum number of tenants to include in the returned page. This may not exceed 1000. |
ApiFuture which will complete successfully with a ListTenantsPage
instance. If an error occurs while retrieving tenant data, the future throws an exception.| IllegalArgumentException | If the specified page token is empty, or max results value is invalid. |
|---|
Updates an existing user account with the attributes contained in the specified Tenant.UpdateRequest.
| request | A non-null Tenant.UpdateRequest instance. |
|---|
Tenant instance corresponding to the updated user account.| NullPointerException | if the provided update request is null. |
|---|---|
| FirebaseAuthException | if an error occurs while updating the user account. |
Similar to updateTenant(UpdateRequest) but performs the operation asynchronously.
| request | A non-null Tenant.UpdateRequest instance. |
|---|
ApiFuture which will complete successfully with a Tenant
instance corresponding to the updated user account. If an error occurs while updating the
user account, the future throws a FirebaseAuthException.