Use ClaimRootClientAuthToken instead of GetRootClientAuthToken
Change-Id: Ied590ebc9c5166df2156b91900a565ec2e8ed755
Reviewed-on: https://weave-review.googlesource.com/1948
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/privet/auth_manager.h b/src/privet/auth_manager.h
index f1b6c8b..8fcadfc 100644
--- a/src/privet/auth_manager.h
+++ b/src/privet/auth_manager.h
@@ -36,12 +36,11 @@
base::Time Now() const;
- std::vector<uint8_t> GetRootClientAuthToken() const;
-
- bool IsValidAuthToken(const std::vector<uint8_t>& token) const;
-
std::vector<uint8_t> ClaimRootClientAuthToken();
- bool ConfirmRootClientAuthToken(const std::vector<uint8_t>& token);
+ bool ConfirmAuthToken(const std::vector<uint8_t>& token);
+
+ std::vector<uint8_t> GetRootClientAuthToken() const;
+ bool IsValidAuthToken(const std::vector<uint8_t>& token) const;
private:
base::DefaultClock default_clock_;