AcquireTokenSilentParameters Class

  • java.lang.Object
    • TokenParameters
      • com.microsoft.identity.client.AcquireTokenSilentParameters

public class AcquireTokenSilentParameters extends TokenParameters

Constructor Summary

Constructor Description
AcquireTokenSilentParameters(AcquireTokenSilentParameters.Builder builder)

Method Summary

Modifier and Type Method and Description
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).

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:

builder

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:

The silent request callback.

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:

boolean

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:

forceRefresh

Applies to