Class TenantsEntity

java.lang.Object
com.auth0.client.mgmt.TenantsEntity

public class TenantsEntity extends Object
Class that provides an implementation of the Tenant Settings methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Tenants

This class is not thread-safe.

See Also:
  • Field Details

    • client

      protected final okhttp3.OkHttpClient client
    • baseUrl

      protected final okhttp3.HttpUrl baseUrl
    • apiToken

      protected final String apiToken
  • Method Details

    • get

      public Request<Tenant> get(FieldsFilter filter)
      Request the Tenant Settings. A token with scope read:tenant_settings is needed. See https://auth0.com/docs/api/management/v2#!/Tenants/get_settings
      Parameters:
      filter - the filter to use. Can be null.
      Returns:
      a Request to execute.
    • update

      public Request<Tenant> update(Tenant tenant)
      Update the Tenant Settings. A token with scope update:tenant_settings is needed. See https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings
      Parameters:
      tenant - the tenant data to set.
      Returns:
      a Request to execute.
    • voidRequest

      protected Request<Void> voidRequest(String method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
    • request

      protected <T> Request<T> request(String method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)