Home
last modified time | relevance | path

Searched refs:RootClientTokenOwner (Results 1 – 8 of 8) sorted by relevance

/external/libweave/src/privet/
Dauth_manager_unittest.cc195 auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient))); in TEST_F()
201 Base64Encode(auth_.GetRootClientAuthToken(RootClientTokenOwner::kCloud))); in TEST_F()
209 auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient))); in TEST_F()
216 Base64Encode(auth.GetRootClientAuthToken(RootClientTokenOwner::kClient))); in TEST_F()
221 auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient), nullptr)); in TEST_F()
226 auto token = auth.GetRootClientAuthToken(RootClientTokenOwner::kClient); in TEST_F()
252 auto root = auth_.GetRootClientAuthToken(RootClientTokenOwner::kCloud); in TEST_F()
272 auto root = auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient); in TEST_F()
280 auto root = auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient); in TEST_F()
293 auto root = auth_.GetRootClientAuthToken(RootClientTokenOwner::kClient); in TEST_F()
[all …]
Dauth_manager.h22 enum class RootClientTokenOwner; variable
53 std::vector<uint8_t> ClaimRootClientAuthToken(RootClientTokenOwner owner,
58 std::vector<uint8_t> GetRootClientAuthToken(RootClientTokenOwner owner) const;
69 RootClientTokenOwner owner);
91 std::deque<std::pair<std::unique_ptr<AuthManager>, RootClientTokenOwner>>
Dauth_manager.cc160 bool IsClaimAllowed(RootClientTokenOwner curret, RootClientTokenOwner claimer) { in IsClaimAllowed()
161 return claimer > curret || claimer == RootClientTokenOwner::kCloud; in IsClaimAllowed()
284 SetAuthSecret({}, RootClientTokenOwner::kNone);
295 SetAuthSecret(auth_secret, RootClientTokenOwner::kNone); in AuthManager()
301 RootClientTokenOwner owner) { in SetAuthSecret()
306 owner = RootClientTokenOwner::kNone; in SetAuthSecret()
388 RootClientTokenOwner owner, in ClaimRootClientAuthToken()
390 CHECK(RootClientTokenOwner::kNone != owner); in ClaimRootClientAuthToken()
429 RootClientTokenOwner owner) const { in GetRootClientAuthToken()
430 CHECK(RootClientTokenOwner::kNone != owner); in GetRootClientAuthToken()
[all …]
Dsecurity_manager.cc222 RootClientTokenOwner::kClient, error)); in ClaimRootClientAuthToken()
443 return GetSettings().root_client_token_owner != RootClientTokenOwner::kNone; in IsLocalAuthSupported()
/external/libweave/src/
Dconfig.cc81 const EnumToStringMap<RootClientTokenOwner>::Map kRootClientTokenOwnerMap[] = {
82 {RootClientTokenOwner::kNone, "none"},
83 {RootClientTokenOwner::kClient, "client"},
84 {RootClientTokenOwner::kCloud, "cloud"},
90 LIBWEAVE_EXPORT EnumToStringMap<RootClientTokenOwner>::EnumToStringMap() in EnumToStringMap()
141 CHECK(settings_.root_client_token_owner == RootClientTokenOwner::kNone); in Load()
241 RootClientTokenOwner token_owner{RootClientTokenOwner::kNone}; in LoadState()
Dconfig.h23 enum class RootClientTokenOwner { enum
38 RootClientTokenOwner root_client_token_owner{RootClientTokenOwner::kNone};
104 RootClientTokenOwner root_client_token_owner) { in set_root_client_token_owner()
Dconfig_unittest.cc87 EXPECT_EQ(RootClientTokenOwner::kNone, GetSettings().root_client_token_owner); in TEST_F()
184 EXPECT_EQ(RootClientTokenOwner::kClient, in TEST_F()
258 change.set_root_client_token_owner(RootClientTokenOwner::kCloud); in TEST_F()
259 EXPECT_EQ(RootClientTokenOwner::kCloud, in TEST_F()
Ddevice_registration_info.cc930 if (GetSettings().root_client_token_owner == RootClientTokenOwner::kCloud) { in SendAuthInfo()
940 RootClientTokenOwner::kCloud, nullptr); in SendAuthInfo()
1332 auth_manager_->SetAuthSecret({}, RootClientTokenOwner::kNone); in RemoveCredentials()