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/security_delegate.h b/src/privet/security_delegate.h
index 051bf20..3446c48 100644
--- a/src/privet/security_delegate.h
+++ b/src/privet/security_delegate.h
@@ -34,6 +34,13 @@
// Returns list of crypto methods supported by devices.
virtual std::set<CryptoType> GetCryptoTypes() const = 0;
+ // Returns Root Client Authorization Token.
+ virtual std::string ClaimRootClientAuthToken() = 0;
+
+ // Confirms pending pending token claim or checks that token is valid for the
+ // active secret.
+ virtual bool ConfirmAuthToken(const std::string& token) = 0;
+
// Returns true if |auth_code| provided by client is valid. Client should
// obtain |auth_code| during pairing process.
virtual bool IsValidPairingCode(const std::string& auth_code) const = 0;