Class DefaultAzureAdRestClientFactory
java.lang.Object
com.atlassian.crowd.directory.rest.DefaultAzureAdRestClientFactory
- All Implemented Interfaces:
AzureAdRestClientFactory
Default implementation of
AzureAdRestClientFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAzureAdRestClientFactory
(MsalAuthenticatorFactory msalAuthenticatorFactory, IoUtilsWrapper ioUtilsWrapper) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(AzureAdRestClient restClient) create
(String clientId, String clientSecret, String tenantId, AzureApiUriResolver endpointDataProvider, long connectionTimeout, long readTimeout)
-
Field Details
-
DISABLE_SSL_VALIDATION
- See Also:
-
-
Constructor Details
-
DefaultAzureAdRestClientFactory
public DefaultAzureAdRestClientFactory(MsalAuthenticatorFactory msalAuthenticatorFactory, IoUtilsWrapper ioUtilsWrapper)
-
-
Method Details
-
create
public AzureAdRestClient create(String clientId, String clientSecret, String tenantId, AzureApiUriResolver endpointDataProvider, long connectionTimeout, long readTimeout) - Specified by:
create
in interfaceAzureAdRestClientFactory
- Parameters:
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 Microsoft Entra IDreadTimeout
- The read timeout to use when communicating with Microsoft Entra ID- Returns:
- an instance of
AzureAdRestClient
, configured to use the specified parameters
-
create
- Specified by:
create
in interfaceAzureAdRestClientFactory
- Parameters:
restClient
- the REST client which should be wrapped by the paging wrapper- Returns:
- a wrapper class for paging Microsoft Entra ID results
-