AcquireTokenSilentParameters Class
- java.
lang. Object - TokenParameters
- com.
microsoft. identity. client. AcquireTokenSilentParameters
- com.
public class AcquireTokenSilentParameters extends TokenParameters
Constructor Summary
Constructor | Description | |
---|---|---|
AcquireTokenSilentParameters(AcquireTokenSilentParameters.Builder builder) |
Method Summary
Modifier and Type | Method and Description |
---|---|
Silent |
getCallback()
The Non-null SilentAuthenticationCallback to receive the result back. 1) If the sdk successfully receives the token back, result will be sent back via onSuccess(final IAuthenticationResult authenticationResult) 2) All the other errors will be sent back via onError(final MsalException exception). |
boolean |
getForceRefresh()
Boolean. Indicates whether MSAL should refresh the access token. Default is false and unless you have good reason to. You should not use this parameter. |
void |
setForceRefresh(boolean forceRefresh)
Boolean. Indicates whether MSAL should refresh the access token. Default is false and unless you have good reason to. You should not use this parameter. |
Inherited Members
Constructor Details
AcquireTokenSilentParameters
public AcquireTokenSilentParameters(AcquireTokenSilentParameters.Builder builder)
Parameters:
Method Details
getCallback
public SilentAuthenticationCallback getCallback()
The Non-null SilentAuthenticationCallback to receive the result back.
1) If the sdk successfully receives the token back, result will be sent back via onSuccess(final IAuthenticationResult authenticationResult)
2) All the other errors will be sent back via onError(final MsalException exception).
Returns:
getForceRefresh
public boolean getForceRefresh()
Boolean. Indicates whether MSAL should refresh the access token. Default is false and unless you have good reason to. You should not use this parameter.
Returns:
setForceRefresh
public void setForceRefresh(boolean forceRefresh)
Boolean. Indicates whether MSAL should refresh the access token. Default is false and unless you have good reason to. You should not use this parameter.
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for