Alexa Auto SDK  2.0.0
Public Types | Public Member Functions | List of all members
aace::alexa::AuthProvider Class Referenceabstract

Public Types

using AuthState = aace::alexa::AuthProviderEngineInterface::AuthState
 
using AuthError = aace::alexa::AuthProviderEngineInterface::AuthError
 

Public Member Functions

virtual std::string getAuthToken ()=0
 
virtual AuthState getAuthState ()=0
 
void authStateChanged (AuthState authState, AuthError authError)
 

Detailed Description

AuthProvider should be extended to manage access tokens for AVS authorization and report client authorization state to the Engine.

Member Typedef Documentation

◆ AuthState

Describes the state of client authorization with AVS

See also
aace::alexa::AuthProviderEngineInterface::AuthState

◆ AuthError

Describes an error during an attempt to authorize with AVS

See also
aace::alexa::AuthProviderEngineInterface::AuthError

Member Function Documentation

◆ getAuthToken()

virtual std::string aace::alexa::AuthProvider::getAuthToken ( )
pure virtual

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.

Returns
The token used to authorize with AVS

◆ getAuthState()

virtual AuthState aace::alexa::AuthProvider::getAuthState ( )
pure virtual

Returns the AVS authorization state of the platform implementation

Returns
The AVS authorization state

◆ authStateChanged()

void aace::alexa::AuthProvider::authStateChanged ( AuthState  authState,
AuthError  authError 
)

Notifies the Engine of a change in AVS authorization state in the platform implementation

Parameters
[in]authStateThe new authorization state
[in]authErrorThe error state of the authorization attempt

Alexa Auto SDK 2.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0