public final class IdentityClientOptions
extends java.lang.Object
Constructor and Description |
---|
IdentityClientOptions()
Creates an instance of IdentityClientOptions with default settings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
authorityHost() |
IdentityClientOptions |
authorityHost(java.lang.String authorityHost)
Specifies the Azure Active Directory endpoint to acquire tokens.
|
int |
maxRetry() |
IdentityClientOptions |
maxRetry(int maxRetry)
Specifies the max number of retries when an authentication request fails.
|
ProxyOptions |
proxyOptions() |
IdentityClientOptions |
proxyOptions(ProxyOptions proxyOptions)
Specifies he options for proxy configuration.
|
java.util.function.Function<java.lang.Integer,java.lang.Integer> |
retryTimeout() |
IdentityClientOptions |
retryTimeout(java.util.function.Function<java.lang.Integer,java.lang.Integer> retryTimeout)
Specifies a Function to calculate seconds of timeout on every retried request.
|
public IdentityClientOptions()
public java.lang.String authorityHost()
public IdentityClientOptions authorityHost(java.lang.String authorityHost)
authorityHost
- the Azure Active Directory endpointpublic int maxRetry()
public IdentityClientOptions maxRetry(int maxRetry)
maxRetry
- the number of retriespublic java.util.function.Function<java.lang.Integer,java.lang.Integer> retryTimeout()
public IdentityClientOptions retryTimeout(java.util.function.Function<java.lang.Integer,java.lang.Integer> retryTimeout)
retryTimeout
- the Function that returns a timeout in seconds given the number of retrypublic ProxyOptions proxyOptions()
public IdentityClientOptions proxyOptions(ProxyOptions proxyOptions)
proxyOptions
- the options for proxy configurationCopyright © 2019 Microsoft Corporation. All rights reserved.