History log of /external/libweave/src/privet/privet_handler.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd2ef6869df7fdd2eb32e17bd7854df478b1f031 18-Dec-2015 Vitaly Buka <vitalybuka@google.com> Move most of auth logic into SecurityDelegate::CreateAccessToken

With local auth we will need to extract most of information from
macaroon auth code.

BUG=25768507

Change-Id: If7b31a1ba9a081dfae0cf8e9df6c8ed27bfe79c4
Reviewed-on: https://weave-review.googlesource.com/2049
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler.h
2d24e0ea050085e91bb8282a0408561d6a17797a 10-Dec-2015 Vitaly Buka <vitalybuka@google.com> Return Root Client Authorization Token using /privet/v3/accessControl/*

RCAT is returned in /privet/v3/accessControl/claim results.
Then client needs to store token and call
/privet/v3/accessControl/confirm with original or derived token.
Depending on result of confirm call client may:
1. No error - Start using token
2. Request error - retry confirm step
3. Unknown token - claim access again
4. Already claimed error - to late, someone else claimed device

BUG=25766815, 26143922

Change-Id: I9d25004e84210142214e6eb0a23d8e3ae7b57d6a
Reviewed-on: https://weave-review.googlesource.com/1885
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler.h
532140dbb2ab861d693419b69d3ce90140fee043 12-Dec-2015 Alex Vakulenko <avakulenko@google.com> Add 'timeMs' field to /privet/info local API

Added the local device time field to the Info response. The timestamp
is a time in milliseconds since Epoch (similar to how the time is
used with the cloud server).

BUG: 26160070
Change-Id: I3059f2880dc2aa4c1990bbe662e8c1057b1aadc1
Reviewed-on: https://weave-review.googlesource.com/1922
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler.h
f9691327f9474ad2cdf2d1ddaa9a847fd5392686 07-Dec-2015 Alex Vakulenko <avakulenko@google.com> Use uint64_t for fingerprints to prevent easy overflows

Instead of using int for state/command/traits/components fingerprints,
use uint64_t and reserve the value of 0 as a special "ignore" whildcard
(instead of former -1).

Change-Id: I3b95b4a8f9f41a963486d31ca6632ec0738dd7e9
Reviewed-on: https://weave-review.googlesource.com/1793
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler.h
551a82bbefbfd6dc83309eec440a41ca737062b4 07-Dec-2015 Alex Vakulenko <avakulenko@google.com> Add support of Components/Traits to local privet APIs

Added support for new privet APIs /privet/v3/traits and
/privet/v3/components to obtain the full trait/component trees
as well as expanded the existing /privet/v3/checkForUpdates to
include the component/trait fingerprints.

BUG: 25917521
Change-Id: Ib753817f88f611935057ca7bd1a1bf02addfb69c
Reviewed-on: https://weave-review.googlesource.com/1791
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler.h
d91d625f29b752be035c5fb49bb29d7ee85fcb90 06-Dec-2015 Alex Vakulenko <avakulenko@google.com> Switch to use ComponentManager for traits/components

Removed the old StateManager, CommandManager and related classes
and switched over to using ComponentManager for all device trait and
component definitions as well as device state.

Change-Id: I99b99a935ba217703d31aa523a3124cca0fa3e90
Reviewed-on: https://weave-review.googlesource.com/1788
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler.h
efee3a281cddd7975d4f732bf8179b1e32ce6806 18-Nov-2015 Alex Vakulenko <avakulenko@google.com> Add support for long-poll HTTP request at /privet/v3/checkForUpdates

Added state/command definition notification mechanism through a long
poll HTTP request as described in:
https://developers.google.com/cloud-devices/v1/reference/local-api/check_for_updates

BUG: 23908251
Change-Id: I5285403f35f23a310404d3324a7a255b77211264
Reviewed-on: https://weave-review.googlesource.com/1533
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler.h
5a1f600e9d7d26c36b3e22ff0dc0ae9e3b2425fc 02-Nov-2015 Paul Westbrook <pwestbro@google.com> Remove the unneeded libweave directory

Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916
Reviewed-on: https://weave-review.googlesource.com/1450
Reviewed-by: Paul Westbrook <pwestbro@google.com>
/external/libweave/src/privet/privet_handler.h