AbstractApplicationBase.Builder<T> Class
- java.
lang. Object - com.
microsoft. aad. msal4j. AbstractApplicationBase. Builder<T>
- com.
Type Parameters
- T
public abstract static class AbstractApplicationBase.Builder
Constructor Summary
Constructor | Description | |
---|---|---|
Builder() | ||
Builder(String clientId) |
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
connectTimeoutForDefaultHttpClient(Integer val)
Sets the connect timeout value used in Https |
T |
correlationId(String val)
Set optional correlation id to be used by the API. |
T |
executorService(ExecutorService val)
Sets Executor |
T |
httpClient(IHttpClient val)
Sets HTTP client to be used by the client application for all HTTP requests. |
T |
logPii(boolean val)
Set log |
T |
proxy(Proxy val)
Sets Proxy configuration to be used by the client application (MSAL4J by default uses javax.net.ssl.HttpsURLConnection) for all network communication. |
T |
readTimeoutForDefaultHttpClient(Integer val)
Sets the read timeout value used in Https |
T |
sslSocketFactory(SSLSocketFactory val)
Sets SSLSocket |
Methods inherited from java.lang.Object
Constructor Details
Builder
public Builder()
Builder
public Builder(String clientId)
Parameters:
Method Details
connectTimeoutForDefaultHttpClient
public T connectTimeoutForDefaultHttpClient(Integer val)
Sets the connect timeout value used in HttpsURLConnection connections made by DefaultHttpClient, and is not needed if using a custom HTTP client
Parameters:
Returns:
correlationId
public T correlationId(String val)
Set optional correlation id to be used by the API. If not provided, the API generates a random UUID.
Parameters:
Returns:
executorService
public T executorService(ExecutorService val)
Sets ExecutorService to be used to execute the requests. Developer is responsible for maintaining the lifecycle of the ExecutorService.
Parameters:
Returns:
httpClient
public T httpClient(IHttpClient val)
Sets HTTP client to be used by the client application for all HTTP requests. Allows for fine grained configuration of HTTP client.
Parameters:
Returns:
logPii
public T logPii(boolean val)
Set logPii - boolean value, which determines whether Pii (personally identifiable information) will be logged in. The default value is false.
Parameters:
Returns:
proxy
public T proxy(Proxy val)
Sets Proxy configuration to be used by the client application (MSAL4J by default uses javax.net.ssl.HttpsURLConnection) for all network communication. If no proxy value is passed in, system defined properties are used. If HTTP client is set on the client application (via ClientApplication.builder().httpClient()), proxy configuration should be done on the HTTP client object being passed in, and not through this method.
Parameters:
Returns:
readTimeoutForDefaultHttpClient
public T readTimeoutForDefaultHttpClient(Integer val)
Sets the read timeout value used in HttpsURLConnection connections made by DefaultHttpClient, and is not needed if using a custom HTTP client
Parameters:
Returns:
sslSocketFactory
public T sslSocketFactory(SSLSocketFactory val)
Sets SSLSocketFactory to be used by the client application for all network communication. If HTTP client is set on the client application (via ClientApplication.builder().httpClient()), any configuration of SSL should be done on the HTTP client and not through this method.
Parameters:
Returns: