/base/security/access_token/interfaces/innerkits/nativetoken/src/ |
H A D | nativetoken.c | 417 static uint32_t CheckProcessInfo(NativeTokenInfoParams *tokenInfo, int32_t *aplRet) in CheckProcessInfo() argument 419 if ((tokenInfo->processName == NULL) || strlen(tokenInfo->processName) > MAX_PROCESS_NAME_LEN || in CheckProcessInfo() 420 strlen(tokenInfo->processName) == 0) { in CheckProcessInfo() 424 uint32_t retDcap = CheckStrArray(tokenInfo->dcaps, tokenInfo->dcapsNum, MAX_DCAPS_NUM, MAX_DCAP_LEN); in CheckProcessInfo() 429 uint32_t retPerm = CheckStrArray(tokenInfo->perms, tokenInfo->permsNum, MAX_PERM_NUM, MAX_PERM_LEN); in CheckProcessInfo() 435 uint32_t retAcl = CheckStrArray(tokenInfo->acls, tokenInfo in CheckProcessInfo() 467 AddNewTokenToListAndFile(const NativeTokenInfoParams *tokenInfo, int32_t aplIn, NativeAtId *tokenId) AddNewTokenToListAndFile() argument 575 UpdateTokenInfoInList(NativeTokenList *tokenNode, const NativeTokenInfoParams *tokenInfo) UpdateTokenInfoInList() argument 634 GetAccessTokenId(NativeTokenInfoParams *tokenInfo) GetAccessTokenId() argument [all...] |
/base/security/access_token/services/tokensyncmanager/src/command/ |
H A D | base_remote_command.cpp | 101 nlohmann::json BaseRemoteCommand::ToNativeTokenInfoJson(const NativeTokenInfoForSync& tokenInfo)
in ToNativeTokenInfoJson() argument 104 for (const auto& permState : tokenInfo.permStateList) {
in ToNativeTokenInfoJson() 110 nlohmann::json DcapsJson = nlohmann::json(tokenInfo.baseInfo.dcap);
in ToNativeTokenInfoJson() 111 nlohmann::json NativeAclsJson = nlohmann::json(tokenInfo.baseInfo.nativeAcls);
in ToNativeTokenInfoJson() 113 {"processName", tokenInfo.baseInfo.processName},
in ToNativeTokenInfoJson() 114 {"apl", tokenInfo.baseInfo.apl},
in ToNativeTokenInfoJson() 115 {"version", tokenInfo.baseInfo.ver},
in ToNativeTokenInfoJson() 116 {"tokenId", tokenInfo.baseInfo.tokenID},
in ToNativeTokenInfoJson() 117 {"tokenAttr", tokenInfo.baseInfo.tokenAttr},
in ToNativeTokenInfoJson() 147 nlohmann::json BaseRemoteCommand::ToHapTokenInfosJson(const HapTokenInfoForSync& tokenInfo)
in ToHapTokenInfosJson() argument [all...] |
H A D | update_remote_hap_token_command.cpp | 34 const std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo)
in UpdateRemoteHapTokenCommand() 35 : updateTokenInfo_(tokenInfo)
in UpdateRemoteHapTokenCommand() 33 UpdateRemoteHapTokenCommand( const std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo) UpdateRemoteHapTokenCommand() argument
|
/base/security/access_token/frameworks/inner_api/tokensync/src/ |
H A D | token_sync_kit.cpp | 47 int TokenSyncKit::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo)
in UpdateRemoteHapTokenInfo() argument 49 ACCESSTOKEN_LOG_INFO(LABEL, "%{public}s called tokenID=%{public}d", __func__, tokenInfo.baseInfo.tokenID);
in UpdateRemoteHapTokenInfo() 50 return TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo);
in UpdateRemoteHapTokenInfo()
|
H A D | token_sync_kit_loader.cpp | 35 int32_t TokenSyncManagerLoader::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo() 37 return TokenSyncKit::UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
|
H A D | token_sync_manager_client.cpp | 73 int TokenSyncManagerClient::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo() 81 return proxy->UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
|
H A D | token_sync_manager_client.h | 37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const;
|
H A D | token_sync_manager_proxy.h | 37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
|
H A D | token_sync_manager_proxy.cpp | 95 int TokenSyncManagerProxy::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) in UpdateRemoteHapTokenInfo() argument 101 tokenInfoParcel.hapTokenInfoForSyncParams = tokenInfo; in UpdateRemoteHapTokenInfo() 104 ACCESSTOKEN_LOG_ERROR(LABEL, "Failed to write tokenInfo"); in UpdateRemoteHapTokenInfo()
|
/base/hiviewdfx/hiview/adapter/service/test/unittest/common/ |
H A D | adapter_loglibrary_test_tools.cpp | 45 NativeTokenInfoParams tokenInfo = { in NativeToken() local 55 tokenInfo.processName = "AdapterLoglibraryIdlTest"; in NativeToken() 56 tokenId = GetAccessTokenId(&tokenInfo); in NativeToken()
|
/base/security/access_token/frameworks/inner_api/tokensync/test/unittest/src/ |
H A D | token_sync_kit_test.cpp | 48 HapTokenInfoForSync tokenInfo; in HWTEST_F() local 51 TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo)); in HWTEST_F()
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/at_wrapper/src/ |
H A D | hks_at_api_wrap.cpp | 96 HapTokenInfo tokenInfo; in HksGetHapNameFromAccessToken() local 97 int result = AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in HksGetHapNameFromAccessToken() 103 uint32_t hapNameLen = strlen(tokenInfo.bundleName.c_str()); in HksGetHapNameFromAccessToken() 104 if (memcpy_s(hapName, hapNameSize, tokenInfo.bundleName.c_str(), hapNameLen) != EOK) { in HksGetHapNameFromAccessToken()
|
/base/account/os_account/frameworks/appaccount/native/src/ |
H A D | app_account_info.cpp | 370 OAuthTokenInfo tokenInfo; in SetOAuthToken() local 371 tokenInfo.status = !token.empty(); in SetOAuthToken() 373 tokenInfo.token = token; in SetOAuthToken() 377 tokenInfo.token = GetAlias() + authTypeAlias; in SetOAuthToken() 379 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthToken() 430 OAuthTokenInfo tokenInfo; in SetOAuthTokenVisibility() local 431 tokenInfo.authList.emplace(bundleName); in SetOAuthTokenVisibility() 432 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthTokenVisibility() 589 OAuthTokenInfo tokenInfo; in ParseTokenInfosFromJson() local 591 it->at(OAUTH_TOKEN).get_to(tokenInfo in ParseTokenInfosFromJson() 830 OAuthTokenInfo tokenInfo; ReadTokenInfos() local [all...] |
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
H A D | account_data_storage.cpp | 162 OAuthTokenInfo tokenInfo; in SetOAuthToken() local 163 tokenInfo.status = !token.empty(); in SetOAuthToken() 164 tokenInfo.token = token; in SetOAuthToken() 165 tokenInfo.authType = authType; in SetOAuthToken() 166 tokenInfo.authList.emplace("bundlename"); in SetOAuthToken() 167 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthToken()
|
/base/security/access_token/services/tokensyncmanager/include/command/ |
H A D | base_remote_command.h | 70 nlohmann::json ToHapTokenInfosJson(const HapTokenInfoForSync &tokenInfo);
72 nlohmann::json ToNativeTokenInfoJson(const NativeTokenInfoForSync& tokenInfo);
|
H A D | update_remote_hap_token_command.h | 43 const HapTokenInfoForSync& tokenInfo);
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
H A D | accesstoken_callbacks.cpp | 75 int32_t TokenSyncCallback::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) in UpdateRemoteHapTokenInfo() argument 81 return tokenSyncCallback_->UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
|
/base/security/access_token/interfaces/inner_api/tokensync/include/ |
H A D | token_sync_kit.h | 32 static int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo);
|
H A D | token_sync_kit_loader.h | 29 int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const override;
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
H A D | remote_command_factory.cpp | 52 const std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo) in NewUpdateRemoteHapTokenCommand() 54 return std::make_shared<UpdateRemoteHapTokenCommand>(srcDeviceId, dstDeviceId, tokenInfo); in NewUpdateRemoteHapTokenCommand() 51 NewUpdateRemoteHapTokenCommand( const std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo) NewUpdateRemoteHapTokenCommand() argument
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_adapter.cpp | 50 AppSpawnMsgAccessToken *tokenInfo = in SetAppAccessToken() local 52 APPSPAWN_CHECK(tokenInfo != NULL, return APPSPAWN_MSG_INVALID, in SetAppAccessToken() 57 tokenId = tokenIdKit.GetRenderTokenID(tokenInfo->accessTokenIdEx); in SetAppAccessToken() 59 tokenId = tokenInfo->accessTokenIdEx; in SetAppAccessToken()
|
/base/security/access_token/frameworks/accesstoken/include/ |
H A D | i_token_sync_callback.h | 38 virtual int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
H A D | token_sync_kit_interface.h | 42 virtual int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const = 0;
|
/base/security/access_token/frameworks/tokensync/include/ |
H A D | i_token_sync_manager.h | 40 virtual int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
|
/base/security/access_token/interfaces/innerkits/nativetoken/include/ |
H A D | nativetoken_kit.h | 39 extern uint64_t GetAccessTokenId(NativeTokenInfoParams *tokenInfo);
|