| java.lang.Object | |
| ↳ | com.amazon.identity.auth.device.api.authorization.AuthorizeResult | 
Returned as a result on successful completion of the following APIs:
authorize(AuthorizeRequest)getToken(Context, Scope[], com.amazon.identity.auth.device.api.Listener)AuthorizeResult will always return an authorization grant, either in the form of an access token or
 authorization code, depending on what was requested.{@since 3.0
}
  
| [Expand] Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From interface
android.os.Parcelable | |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| An access token will be returned by either  authorize(AuthorizeRequest)when
 called with withAuthorizeRequest.GrantTypespecified asACCESS_TOKEN, or bygetToken(Context, Scope[], com.amazon.identity.auth.device.api.Listener).{@since 3.0
} | |||||||||||
| An authorization code will be returned if  authorize(AuthorizeRequest)was called
 withAuthorizeRequest.GrantTypespecified asAUTHORIZATION_CODE.{@since 3.0
} | |||||||||||
| Returns the client ID that is encoded within the API key used by your app to integrate with the Login with Amazon Android SDK. | |||||||||||
| Returns the redirect_uri parameter which is required to do the exchange of code with access token and refresh token. | |||||||||||
| If  authorize(AuthorizeRequest)was called withshouldReturnUserData()set to true (it is true by default), then aUserobject
 will be available from this method.{@since 3.0
} | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
|  From interface
  android.os.Parcelable | |||||||||||
An access token will be returned by either authorize(AuthorizeRequest) when
 called with with AuthorizeRequest.GrantType specified as ACCESS_TOKEN, or by
 getToken(Context, Scope[], com.amazon.identity.auth.device.api.Listener).{@since 3.0
}
An authorization code will be returned if authorize(AuthorizeRequest) was called
 with AuthorizeRequest.GrantType specified as AUTHORIZATION_CODE.{@since 3.0
}
Returns the client ID that is encoded within the API key used by your app to integrate with the Login with Amazon Android SDK. This client Id is your client identifier that
 the Login with Amazon Android SDK uses to authorize customers for your application.
 If you are requesting an authorization code in the authorize(AuthorizeRequest) call, you must call this method in the onSuccess handler of your AuthorizeListener in order to get the client ID, which is a parameter required to do the exchange of code for access token and refresh token.{@since 3.0
}
Returns the redirect_uri parameter which is required to do the exchange of code with access token and refresh token.
 If you are requesting an authorization code in the authorize(AuthorizeRequest) call, you must call this API in the onSuccess handler of your AuthorizationListener to get the redirect_uri.{@since 3.0
}
If authorize(AuthorizeRequest) was called with
 shouldReturnUserData() set to true (it is true by default), then a User object
 will be available from this method.{@since 3.0
}