AuthProvider should be extended to manage access tokens for AVS authorization and report client authorization state to the Engine.
- Deprecated:
- This platform interface is being deprecated. Use
com.amazon.aace.authorization.Authorization instead.
◆ getAuthToken()
| String com.amazon.aace.alexa.AuthProvider.getAuthToken |
( |
| ) |
|
Returns the token used by the platform implementation for authorization with AVS. The platform implementation should retrieve an auth token if it does not have one.
- Deprecated:
- This method is being deprecated as this platform interface is being deprecated.
- Returns
- The token used to authorize with AVS
◆ getAuthState()
| AuthState com.amazon.aace.alexa.AuthProvider.getAuthState |
( |
| ) |
|
Returns the AVS authorization state of the platform implementation
- Deprecated:
- This method is being deprecated as this platform interface is being deprecated.
- Returns
- The AVS authorization state
◆ authFailure()
| void com.amazon.aace.alexa.AuthProvider.authFailure |
( |
String |
token | ) |
|
Notifies the platform implementation that the specified access token was used in an unauthorized request to AVS. AVS responded to this request with a 403 code indicating the token was not valid.
- Deprecated:
- This method is being deprecated as this platform interface is being deprecated.
- Parameters
-
| token | The access token used in an unauthorized request to AVS |
◆ authStateChange()
| final void com.amazon.aace.alexa.AuthProvider.authStateChange |
( |
AuthState |
authState, |
|
|
AuthError |
authError |
|
) |
| |
Notifies the Engine of a change in AVS authorization state in the platform implementation
- Deprecated:
- This method is being deprecated as this platform interface is being deprecated.
- Parameters
-
| authState | The new authorization state |
| authError | The error state of the authorization attempt |
Alexa Auto SDK 3.2.0 - Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0