T
- the type of the credential builderpublic abstract class AadCredentialBuilderBase<T extends AadCredentialBuilderBase<T>> extends CredentialBuilderBase<T>
Constructor and Description |
---|
AadCredentialBuilderBase() |
Modifier and Type | Method and Description |
---|---|
T |
authorityHost(String authorityHost)
Specifies the Azure Active Directory endpoint to acquire tokens.
|
T |
clientId(String clientId)
Sets the client ID of the application.
|
T |
executorService(ExecutorService executorService)
Specifies the ExecutorService to be used to execute the authentication requests.
|
T |
tenantId(String tenantId)
Sets the tenant ID of the application.
|
allowMultiTenantAuthentication, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
public T authorityHost(String authorityHost)
authorityHost
- the Azure Active Directory endpointpublic T clientId(String clientId)
clientId
- the client ID of the application.public T tenantId(String tenantId)
tenantId
- the tenant ID of the application.public T executorService(ExecutorService executorService)
If this is not configured, the ForkJoinPool.commonPool()
will be used which is
also shared with other application tasks. If the common pool is heavily used for other tasks, authentication
requests might starve and setting up this executor service should be considered.
The executor service and can be safely shutdown if the TokenCredential is no longer being used by the Azure SDK clients and should be shutdown before the application exits.
executorService
- the executor service to use for executing authentication requests.Copyright © 2021 Microsoft Corporation. All rights reserved.