Alexa Auto SDK  3.2.0
Classes | Public Member Functions | Protected Member Functions | List of all members
com.amazon.aace.cbl.CBL Class Referenceabstract

Classes

enum  CBLState
 
enum  CBLStateChangedReason
 

Public Member Functions

void cblStateChanged (CBLState state, CBLStateChangedReason reason, String url, String code)
 
void clearRefreshToken ()
 
void setRefreshToken (String refreshToken)
 
String getRefreshToken ()
 
void setUserProfile (String name, String email)
 

Protected Member Functions

final void start ()
 
final void cancel ()
 
final void reset ()
 

Detailed Description

CBL should be extended to perform CBL authentication.

Deprecated:
This platform interface is being deprecated. Use com.amazon.aace.authorization.Authorization instead.

Member Function Documentation

◆ cblStateChanged()

void com.amazon.aace.cbl.CBL.cblStateChanged ( CBLState  state,
CBLStateChangedReason  reason,
String  url,
String  code 
)

Notifies the platform implementation of an authorization flow state change

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ clearRefreshToken()

void com.amazon.aace.cbl.CBL.clearRefreshToken ( )

Notifies the platform implementation to clear the refresh token

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ setRefreshToken()

void com.amazon.aace.cbl.CBL.setRefreshToken ( String  refreshToken)

Notifies the platform implementation to set the refresh token

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ getRefreshToken()

String com.amazon.aace.cbl.CBL.getRefreshToken ( )

Returns the refresh token stored by the platform implementation, otherwise return an empty string

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ setUserProfile()

void com.amazon.aace.cbl.CBL.setUserProfile ( String  name,
String  email 
)

Notifies the platform implementation to set the user profile, this is requested one time after authorization requestUserProfile must be enabled in configuration

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ start()

final void com.amazon.aace.cbl.CBL.start ( )
protected

Notifies the Engine to begin the authorization process

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ cancel()

final void com.amazon.aace.cbl.CBL.cancel ( )
protected

Notifies the Engine to cancel the authorization process

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

◆ reset()

final void com.amazon.aace.cbl.CBL.reset ( )
protected

Notifies the Engine to reset the authorization state

Deprecated:
This method is being deprecated as this platform interface is being deprecated.

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