public class AcquireTokenParameters extends TokenParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
AcquireTokenParameters.Builder |
| Constructor and Description |
|---|
AcquireTokenParameters(AcquireTokenParameters.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
android.app.Activity |
getActivity()
Non-null
Activity that will be used as the parent activity for launching the com.microsoft.identity.common.internal.providers.oauth2.AuthorizationActivity |
AuthenticationCallback |
getCallback()
The Non-null
AuthenticationCallback to receive the result back. |
java.util.List<android.util.Pair<java.lang.String,java.lang.String>> |
getExtraQueryStringParameters()
If you've been instructed to pass additional query string parameters to the authorization endpoint.
|
java.util.List<java.lang.String> |
getExtraScopesToConsent()
These are additional scopes that you would like the user to authorize the use of, while getting consent
for the first set of scopes
|
Fragment |
getFragment()
Optional
Fragment that will be replaced by com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment |
java.lang.String |
getLoginHint()
Optional.
|
Prompt |
getPrompt()
Controls the value of the prompt parameter sent along with the authorization request.
|
getAccount, getAccountRecord, getAuthenticationScheme, getAuthority, getClaimsRequest, getCorrelationId, getScopespublic AcquireTokenParameters(AcquireTokenParameters.Builder builder)
public android.app.Activity getActivity()
Activity that will be used as the parent activity for launching the com.microsoft.identity.common.internal.providers.oauth2.AuthorizationActivitypublic Fragment getFragment()
Fragment that will be replaced by com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragmentpublic java.lang.String getLoginHint()
public Prompt getPrompt()
public java.util.List<java.lang.String> getExtraScopesToConsent()
public java.util.List<android.util.Pair<java.lang.String,java.lang.String>> getExtraQueryStringParameters()
public AuthenticationCallback getCallback()
AuthenticationCallback to receive the result back.
1) If user cancels the flow by pressing the device back button, the result will be sent
back via AuthenticationCallback.onCancel().
2) If the sdk successfully receives the token back, result will be sent back via
SilentAuthenticationCallback.onSuccess(IAuthenticationResult)
3) All the other errors will be sent back via
SilentAuthenticationCallback.onError(com.microsoft.identity.client.exception.MsalException).