Class Tenant

java.lang.Object
com.auth0.json.mgmt.tenants.Tenant

public class Tenant extends Object
Class that represents an Auth0 Tenant Settings object. Related to the TenantsEntity entity.
  • Constructor Details

    • Tenant

      public Tenant()
  • Method Details

    • getChangePasswordPage

      public PageCustomization getChangePasswordPage()
      Getter for the change password page customization.
      Returns:
      the page customization.
    • setChangePasswordPage

      public void setChangePasswordPage(PageCustomization changePassword)
      Setter for the change password customization.
      Parameters:
      changePassword - the page customization to set.
    • getGuardianMFAPage

      public PageCustomization getGuardianMFAPage()
      Getter for the guardian MFA page customization.
      Returns:
      the page customization.
    • setGuardianMFAPage

      public void setGuardianMFAPage(PageCustomization guardianMFAPage)
      Setter for the guardian MFA page customization.
      Parameters:
      guardianMFAPage - the page customization to set.
    • getDefaultAudience

      public String getDefaultAudience()
      Getter for the default audience used for API Authorization.
      Returns:
      the default audience.
    • setDefaultAudience

      public void setDefaultAudience(String defaultAudience)
      Setter for the default audience used for API Authorization.
      Parameters:
      defaultAudience - the default audience to set.
    • getDefaultDirectory

      public String getDefaultDirectory()
      Getter for the name of the connection that will be used for password grants at the token endpoint. Only the following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS.
      Returns:
      the default directory.
    • setDefaultDirectory

      public void setDefaultDirectory(String defaultDirectory)
      Setter for the name of the connection that will be used for password grants at the token endpoint. Only the following connection types are supported: LDAP, AD, Database Connections, Passwordless, Windows Azure Active Directory, ADFS.
      Parameters:
      defaultDirectory - the default directory to set.
    • getErrorPage

      public ErrorPageCustomization getErrorPage()
      Getter for the error page customization.
      Returns:
      the page customization.
    • setErrorPage

      public void setErrorPage(ErrorPageCustomization errorPage)
      Setter for the error page customization.
      Parameters:
      errorPage - the page customization to set.
    • getFlags

      public Map<String,Boolean> getFlags()
      Getter for the tenant flags. Some flags are 'change_pwd_flow_v1', 'enable_apis_section', 'disable_impersonation', 'enable_client_connections', 'enable_pipeline2'.
      Returns:
      the tenant flags.
    • setFlags

      public void setFlags(Map<String,Boolean> flags)
      Setter for the tenant flags. Some flags are 'change_pwd_flow_v1', 'enable_apis_section', 'disable_impersonation', 'enable_client_connections', 'enable_pipeline2'.
      Parameters:
      flags - the flags to set.
    • getFriendlyName

      public String getFriendlyName()
      Getter for the friendly name of the tenant.
      Returns:
      the friendly name.
    • setFriendlyName

      public void setFriendlyName(String friendlyName)
      Setter for the friendly name of the tenant.
      Parameters:
      friendlyName - the friendly name to set.
    • getPictureUrl

      public String getPictureUrl()
      Getter for the url of the tenant picture.
      Returns:
      the tenant picture url.
    • setPictureUrl

      public void setPictureUrl(String pictureUrl)
      Setter for the tenant picture url. An image with size 150x150 is recommended.
      Parameters:
      pictureUrl - the picture url to set.
    • getSupportEmail

      public String getSupportEmail()
      Getter for the user support email.
      Returns:
      the support email.
    • setSupportEmail

      public void setSupportEmail(String supportEmail)
      Setter for the user support email.
      Parameters:
      supportEmail - the support email to set.
    • getSupportUrl

      public String getSupportUrl()
      Getter for the user support url.
      Returns:
      the support url.
    • setSupportUrl

      public void setSupportUrl(String supportUrl)
      Setter for the user support url.
      Parameters:
      supportUrl - the support url to set.
    • getAllowedLogoutUrls

      public List<String> getAllowedLogoutUrls()
      Getter for the tenant list of URLs that are valid to redirect to after logout from Auth0.
      Returns:
      the list of logout urls.
    • setAllowedLogoutUrls

      public void setAllowedLogoutUrls(List<String> allowedLogoutUrls)
      Setter for the tenant list of URLs that are valid to redirect to after logout from Auth0.
      Parameters:
      allowedLogoutUrls - the allowed logout urls to set.
    • getSessionLifetime

      public Integer getSessionLifetime()
      Getter for the login session lifetime. This is how long the session will stay valid. Value is in hours.
      Returns:
      the session lifetime in hours.
    • getSessionCookie

      public SessionCookie getSessionCookie()
      Returns:
      the value of the session cookie.
    • setSessionCookie

      public void setSessionCookie(SessionCookie sessionCookie)
      Sets the value of the session cookie.
      Parameters:
      sessionCookie - the value of the session cookie to set.
    • setSessionLifetime

      public void setSessionLifetime(Integer sessionLifetime)
      Setter for the login session lifetime. This is how long the session will stay valid. Value is in hours.
      Parameters:
      sessionLifetime - the session lifetime in hours to set.
    • getIdleSessionLifetime

      public Integer getIdleSessionLifetime()
      Getter for the login session idle lifetime. This is how long the session will stay valid without user activity. Value is in hours.
      Returns:
      the session idle lifetime in hours.
    • setIdleSessionLifetime

      public void setIdleSessionLifetime(Integer idleSessionLifetime)
      Setter for the login session idle lifetime. This is how long the session will stay valid without user activity. Value is in hours.
      Parameters:
      idleSessionLifetime - the session lifetime in hours to set.