TokenParameters Class

Definition

Base class for AcquireTokenParameters and AcquireTokenSilentParameters

public class TokenParameters
Inheritance
java.lang.Object
TokenParameters

Constructors

TokenParameters(@NonNull final TokenParameters.Builder builder)

Methods

getAccount()

Optional. If provided, will be used to force the session continuation. If user tries to sign in with a different account, error will be returned.

getAccountRecord()
getAuthenticationScheme()

Gets the AuthenticationScheme.

getAuthority()

Optional. Can be passed to override the default authority.

getClaimsRequest()

Optional. Can be passed into request specific claims in the id_token and access_token

getCorrelationId()

Gets the correlation id passed to Token Parameters. If specified, MSAL will use this correlation id for the request instead of generating a new one.

getScopes()

The non-null array of scopes to be requested for the access token. MSAL always sends the scopes 'openid profile offline_access'. Do not include any of these scopes in the scope parameter.

Applies to