public interface IClientApplicationBase
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AUTHORITY |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<IAuthenticationResult> |
acquireToken(AuthorizationCodeParameters parameters)
Acquires security token from the authority using an authorization code previously received.
|
CompletableFuture<IAuthenticationResult> |
acquireToken(RefreshTokenParameters parameters)
Acquires a security token from the authority using a refresh token previously received.
|
CompletableFuture<IAuthenticationResult> |
acquireTokenSilently(SilentParameters parameters)
Returns tokens from cache if present and not expired or acquires new tokens from the authority
by using the refresh token present in cache.
|
String |
authority() |
String |
clientId() |
String |
correlationId() |
CompletableFuture<Set<IAccount>> |
getAccounts()
Returns accounts in the cache
|
boolean |
logPii() |
Proxy |
proxy() |
CompletableFuture |
removeAccount(IAccount account)
Removes IAccount from the cache
|
SSLSocketFactory |
sslSocketFactory() |
Consumer<List<HashMap<String,String>>> |
telemetryConsumer() |
ITokenCache |
tokenCache() |
boolean |
validateAuthority() |
static final String DEFAULT_AUTHORITY
String clientId()
String authority()
DEFAULT_AUTHORITYboolean validateAuthority()
String correlationId()
boolean logPii()
Proxy proxy()
SSLSocketFactory sslSocketFactory()
ITokenCache tokenCache()
acquireTokenSilently(SilentParameters)Consumer<List<HashMap<String,String>>> telemetryConsumer()
CompletableFuture<IAuthenticationResult> acquireToken(AuthorizationCodeParameters parameters)
parameters - AuthorizationCodeParametersCompletableFuture object representing the IAuthenticationResult of the call.CompletableFuture<IAuthenticationResult> acquireToken(RefreshTokenParameters parameters)
parameters - RefreshTokenParametersCompletableFuture object representing the IAuthenticationResult of the call.CompletableFuture<IAuthenticationResult> acquireTokenSilently(SilentParameters parameters) throws MalformedURLException
parameters - instance of SilentParametersCompletableFuture object representing the IAuthenticationResult of the call.MalformedURLException - if authorityUrl from parameters is malformed URLCompletableFuture<Set<IAccount>> getAccounts()
CompletableFuture removeAccount(IAccount account)
account - instance of Account to be removed from cacheCompletableFuture object representing account removal task.Copyright © 2013–2019. All rights reserved.