public static class ConfidentialClientApplication.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
authority(String val)
Set URL of the authenticating authority or security token service (STS) from which MSAL
will acquire security tokens.
|
T |
b2cAuthority(String val) |
ConfidentialClientApplication |
build() |
T |
correlationId(String val)
Set optional correlation id to be used by the API.
|
T |
executorService(ExecutorService val)
Sets ExecutorService to be used to execute the requests.
|
T |
logPii(boolean val)
Set logPii - boolean value, which determines
whether Pii (personally identifiable information) will be logged in.
|
T |
onlySendFailureTelemetry(Boolean val) |
T |
proxy(Proxy val)
Sets Proxy configuration to be used by the client application for all network communication.
|
protected ConfidentialClientApplication.Builder |
self() |
T |
setTokenCacheAccessAspect(ITokenCacheAccessAspect val)
Sets ITokenCacheAccessAspect to be used for cache_data persistence.
|
T |
sslSocketFactory(SSLSocketFactory val)
Sets SSLSocketFactory to be used by the client application for all network communication.
|
T |
telemetryConsumer(Consumer<List<HashMap<String,String>>> val) |
T |
validateAuthority(boolean val)
Set a boolean value telling the application if the authority needs to be verified
against a list of known authorities.
|
public ConfidentialClientApplication build()
protected ConfidentialClientApplication.Builder self()
public T authority(String val) throws MalformedURLException
IClientApplicationBase.DEFAULT_AUTHORITYval - a string value of authorityMalformedURLException - if val is malformed URLpublic T b2cAuthority(String val) throws MalformedURLException
MalformedURLExceptionpublic T validateAuthority(boolean val)
val - a boolean value for validateAuthoritypublic T correlationId(String val)
val - a string value of correlation idpublic T logPii(boolean val)
val - a boolean value for logPiipublic T executorService(ExecutorService val)
val - an instance of ExecutorServicepublic T proxy(Proxy val)
val - an instance of Proxypublic T sslSocketFactory(SSLSocketFactory val)
val - an instance of SSLSocketFactorypublic T onlySendFailureTelemetry(Boolean val)
public T setTokenCacheAccessAspect(ITokenCacheAccessAspect val)
val - an instance of ITokenCacheAccessAspectCopyright © 2013–2019. All rights reserved.