public class AcquireTokenSilentParameters extends TokenParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
AcquireTokenSilentParameters.Builder |
| Constructor and Description |
|---|
AcquireTokenSilentParameters(AcquireTokenSilentParameters.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
SilentAuthenticationCallback |
getCallback()
The Non-null
SilentAuthenticationCallback to receive the result back. |
boolean |
getForceRefresh()
Boolean.
|
void |
setForceRefresh(boolean forceRefresh)
Boolean.
|
getAccount, getAccountRecord, getAuthenticationScheme, getAuthority, getClaimsRequest, getCorrelationId, getScopespublic AcquireTokenSilentParameters(AcquireTokenSilentParameters.Builder builder)
public SilentAuthenticationCallback getCallback()
SilentAuthenticationCallback to receive the result back.
1) If the sdk successfully receives the token back, result will be sent back via
SilentAuthenticationCallback.onSuccess(IAuthenticationResult)
2) All the other errors will be sent back via
SilentAuthenticationCallback.onError(com.microsoft.identity.client.exception.MsalException).
public void setForceRefresh(boolean forceRefresh)
forceRefresh - public boolean getForceRefresh()