public interface IPublicClientApplication extends IClientApplicationBase
DEFAULT_AUTHORITY| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<IAuthenticationResult> |
acquireToken(DeviceCodeFlowParameters parameters)
Acquires security token from the authority using an device code flow.
|
CompletableFuture<IAuthenticationResult> |
acquireToken(IntegratedWindowsAuthenticationParameters parameters)
Acquires tokens from the authority configured in the application via Integrated Windows Authentication.
|
CompletableFuture<IAuthenticationResult> |
acquireToken(UserNamePasswordParameters parameters)
Acquires tokens from the authority configured in the application via Username/Password authentication.
|
acquireToken, acquireToken, acquireTokenSilently, authority, clientId, correlationId, getAccounts, logPii, proxy, removeAccount, sslSocketFactory, telemetryConsumer, tokenCache, validateAuthorityCompletableFuture<IAuthenticationResult> acquireToken(UserNamePasswordParameters parameters)
parameters - instance of UserNamePasswordParametersCompletableFuture containing an IAuthenticationResultCompletableFuture<IAuthenticationResult> acquireToken(IntegratedWindowsAuthenticationParameters parameters)
parameters - instance of IntegratedWindowsAuthenticationParametersCompletableFuture containing an IAuthenticationResultCompletableFuture<IAuthenticationResult> acquireToken(DeviceCodeFlowParameters parameters)
parameters - instance of DeviceCodeFlowParametersCompletableFuture containing an IAuthenticationResultMsalException - thrown if authorization is pending or another error occurred.
If the errorCode of the exception is AuthenticationErrorCode.AUTHORIZATION_PENDING,
the call needs to be retried until the AccessToken is returned.
DeviceCode.interval - The minimum amount of time in seconds that the client
SHOULD wait between polling requests to the token endpointCopyright © 2013–2019. All rights reserved.