The class to interface with the Authorization Engine.
◆ AuthorizationState
Describes the authorization states.
Enumerator |
---|
UNAUTHORIZED | Device is unauthorized.
|
AUTHORIZING | Device authorization in progress.
|
AUTHORIZED | Device is authorized.
|
◆ onStartAuthorization()
virtual void aace::authorization::AuthorizationEngineInterface::onStartAuthorization |
( |
const std::string & |
service, |
|
|
const std::string & |
data |
|
) |
| |
|
pure virtual |
Notifies the Engine to start the authorization process. This function is called when Authorization::startAuthorization
is called. Engine to call authStateChanged
with AUTHORIZING
on the start of authorization process. Engine to call authStateChanged
with AUTHORIZED
on the successful authorization.
- Parameters
-
service | Indicates the authorization service. |
data | Represents the data in JSON format. The content of the JSON object is defined by each authorization service. |
◆ onCancelAuthorization()
virtual void aace::authorization::AuthorizationEngineInterface::onCancelAuthorization |
( |
const std::string & |
service | ) |
|
|
pure virtual |
Notifies the Engine to cancel the authorization. This function is called when Authorization::cancelAuthorization
is called.
- Note
- This does not log out the active authorization.
- Parameters
-
service | Indicates the authorization service. |
◆ onSendEvent()
virtual void aace::authorization::AuthorizationEngineInterface::onSendEvent |
( |
const std::string & |
service, |
|
|
const std::string & |
event |
|
) |
| |
|
pure virtual |
Notifies the Engine of an event in the platform implementation.
- Parameters
-
service | Indicates the authorization service. |
event | Represents the event in JSON format. The content of the JSON object is defined by each authorization service. |
◆ onLogout()
virtual void aace::authorization::AuthorizationEngineInterface::onLogout |
( |
const std::string & |
service | ) |
|
|
pure virtual |
Notifies the Engine to log out of the authorization service. This function is called when Authorization::logout
is called. Engine calls authorizationStateChanged
with UNAUTHORIZED
on the successful logout.
- Parameters
-
service | Indicates the authorization service of which the Engine will log out. |
Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0