public class DefaultAzureAdRestClientFactory extends Object implements AzureAdRestClientFactory
AzureAdRestClientFactory
Constructor and Description |
---|
DefaultAzureAdRestClientFactory(AdalAuthenticationContextFactory authenticationContextFactory,
IoUtilsWrapper ioUtilsWrapper) |
Modifier and Type | Method and Description |
---|---|
AzureAdPagingWrapper |
create(AzureAdRestClient restClient) |
AzureAdRestClient |
create(String clientId,
String clientSecret,
String tenantId,
AzureApiUriResolver endpointDataProvider,
long connectionTimeout,
long readTimeout) |
public DefaultAzureAdRestClientFactory(AdalAuthenticationContextFactory authenticationContextFactory, IoUtilsWrapper ioUtilsWrapper)
public AzureAdRestClient create(String clientId, String clientSecret, String tenantId, AzureApiUriResolver endpointDataProvider, long connectionTimeout, long readTimeout)
create
in interface AzureAdRestClientFactory
clientId
- Client ID of the web application used to communicate with AzureclientSecret
- Client secret of the web application used to communicate with AzuretenantId
- ID or name of the Azure tenant to useendpointDataProvider
- Endpoint data provider appropriate for tenant's regionconnectionTimeout
- The connection timeout to use when communicating with Azure ADreadTimeout
- The read timeout to use when communicating with Azure ADAzureAdRestClient
, configured to use the specified parameterspublic AzureAdPagingWrapper create(AzureAdRestClient restClient)
create
in interface AzureAdRestClientFactory
restClient
- the REST client which should be wrapped by the paging wrapperCopyright © 2021 Atlassian. All rights reserved.