![]() |
Alexa Auto SDK
3.1.0
|
Classes | |
| enum | AuthorizationState |
Public Member Functions | |
| void | eventReceived (String service, String event) |
| void | authorizationStateChanged (String service, AuthorizationState state) |
| void | authorizationError (String service, String error, String message) |
| String | getAuthorizationData (String service, String key) |
| void | setAuthorizationData (String service, String key, String data) |
Protected Member Functions | |
| final void | startAuthorization (String service, String data) |
| final void | cancelAuthorization (String service) |
| final void | sendEvent (String service, String event) |
| final void | logout (String service) |
Authorization should be extended to carry out the authorization's required for the Engine.
This is a single platform interface for any supported authorizations by the Engine. The authorization process shall be carried out by the individual providers, referred here as authorization service. The platform implementation is responsible to follow the protocol established by the authorization service. Please refer to the authorization service documentation for the protocol information.
| void com.amazon.aace.authorization.Authorization.eventReceived | ( | String | service, |
| String | event | ||
| ) |
Notifies the platform implementation about the authorization event.
| service | Indicates the authorization service. |
| event | JSON representation of the authorization event as defined by the authorization service. |
| void com.amazon.aace.authorization.Authorization.authorizationStateChanged | ( | String | service, |
| AuthorizationState | state | ||
| ) |
Notifies the platform implementation about the authorization state change.
| service | Indicates the authorization service. |
| state | The authorization state represented using AuthorizationState |
| void com.amazon.aace.authorization.Authorization.authorizationError | ( | String | service, |
| String | error, | ||
| String | message | ||
| ) |
Notifies the platform implementation about any error in the authorization process.
| service | Indicates the authorization service. |
| error | Indicates the authorization error. The value is defined by the each authorization service. |
| message | Error message for logging purpose. |
| String com.amazon.aace.authorization.Authorization.getAuthorizationData | ( | String | service, |
| String | key | ||
| ) |
Function to get the authorization data from the platform implementation.
setAuthorizationData.| service | Indicates the authorization service. |
| key | The key of the data requested. |
| void com.amazon.aace.authorization.Authorization.setAuthorizationData | ( | String | service, |
| String | key, | ||
| String | data | ||
| ) |
Function to set the authorization data in platform implementation. The platform implementation are expected to store these values securely.
| service | Indicates the authorization service. |
| key | Represents the key of the data |
| data | The data to be set. |
|
protected |
Notifies the Engine to start the authorization process. Engine to call authStateChanged with AUTHORIZING on the start of authorization process. Engine to call authStateChanged with AUTHORIZED on the successful authorization.
| service | Indicates the authorization service. |
| data | Represents the data in json format. The value of this is defined by each authorization service. |
|
protected |
Notifies the Engine to cancel the authorization.
| service | Indicates the authorization service. |
|
protected |
The authorization event from platform implementation.
| service | Indicates the authorization service. |
| event | Represents the event in json format. The value of this is defined by each authorization service. |
|
protected |
Notifies the Engine to logout. Engine would call authStateChanged with UNAUTHORIZED on the successful logout.
| service | Indicates the authorization service that needs to be logged out. |
Alexa Auto SDK 3.1.0 - Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0