Alexa Auto SDK  2.0.0
Classes | Public Member Functions | List of all members
com.amazon.aace.alexa.AuthProvider Class Referenceabstract

Classes

enum  AuthError
 
enum  AuthState
 

Public Member Functions

String getAuthToken ()
 
AuthState getAuthState ()
 
final void authStateChange (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 Function Documentation

◆ 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.

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

Returns
The AVS authorization state

◆ 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

Parameters
authStateThe new authorization state
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