T
- the type of the credential builderpublic abstract class CredentialBuilderBase<T extends CredentialBuilderBase<T>> extends Object
Modifier and Type | Method and Description |
---|---|
T |
allowMultiTenantAuthentication()
Allows to override the tenant being used in the authentication request
via
TokenRequestContextExperimental.setTenantId(String) . |
T |
httpClient(com.azure.core.http.HttpClient client)
Sets the HTTP client to use for sending and receiving requests to and from the service.
|
T |
httpPipeline(com.azure.core.http.HttpPipeline httpPipeline)
Specifies the HttpPipeline to send all requests.
|
T |
maxRetry(int maxRetry)
Specifies the max number of retries when an authentication request fails.
|
T |
proxyOptions(com.azure.core.http.ProxyOptions proxyOptions)
Deprecated.
Configure the proxy options on the
HttpClient instead and then set that
client on the credential using CredentialBuilderBase.httpClient(HttpClient) . |
T |
retryTimeout(Function<Duration,Duration> retryTimeout)
Specifies a Function to calculate seconds of timeout on every retried request.
|
public T maxRetry(int maxRetry)
maxRetry
- the number of retriespublic T retryTimeout(Function<Duration,Duration> retryTimeout)
retryTimeout
- the Function that returns a timeout in seconds given the number of retry@Deprecated public T proxyOptions(com.azure.core.http.ProxyOptions proxyOptions)
HttpClient
instead and then set that
client on the credential using CredentialBuilderBase.httpClient(HttpClient)
.proxyOptions
- the options for proxy configurationpublic T httpPipeline(com.azure.core.http.HttpPipeline httpPipeline)
httpPipeline
- the HttpPipeline to send all requestspublic T httpClient(com.azure.core.http.HttpClient client)
client
- The HTTP client to use for requests.NullPointerException
- If client
is null
.public T allowMultiTenantAuthentication()
TokenRequestContextExperimental.setTenantId(String)
.Copyright © 2021 Microsoft Corporation. All rights reserved.