Class DefaultAzureAdRestClientFactory

java.lang.Object
com.atlassian.crowd.directory.rest.DefaultAzureAdRestClientFactory
All Implemented Interfaces:
AzureAdRestClientFactory

public class DefaultAzureAdRestClientFactory extends Object implements AzureAdRestClientFactory
Default implementation of AzureAdRestClientFactory
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public AzureAdRestClient create(String clientId, String clientSecret, String tenantId, AzureApiUriResolver endpointDataProvider, long connectionTimeout, long readTimeout)
      Specified by:
      create in interface AzureAdRestClientFactory
      Parameters:
      clientId - Client ID of the web application used to communicate with Azure
      clientSecret - Client secret of the web application used to communicate with Azure
      tenantId - ID or name of the Azure tenant to use
      endpointDataProvider - Endpoint data provider appropriate for tenant's region
      connectionTimeout - The connection timeout to use when communicating with Microsoft Entra ID
      readTimeout - The read timeout to use when communicating with Microsoft Entra ID
      Returns:
      an instance of AzureAdRestClient, configured to use the specified parameters
    • create

      public AzureAdPagingWrapper create(AzureAdRestClient restClient)
      Specified by:
      create in interface AzureAdRestClientFactory
      Parameters:
      restClient - the REST client which should be wrapped by the paging wrapper
      Returns:
      a wrapper class for paging Microsoft Entra ID results