Home
last modified time | relevance | path

Searched refs:tokenInfo (Results 1 - 25 of 62) sorted by relevance

123

/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken.c417 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 Dbase_remote_command.cpp101 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 Dupdate_remote_hap_token_command.cpp34 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 Dtoken_sync_kit.cpp47 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 Dtoken_sync_kit_loader.cpp35 int32_t TokenSyncManagerLoader::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo()
37 return TokenSyncKit::UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
H A Dtoken_sync_manager_client.cpp73 int TokenSyncManagerClient::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo()
81 return proxy->UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
H A Dtoken_sync_manager_client.h37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const;
H A Dtoken_sync_manager_proxy.h37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
H A Dtoken_sync_manager_proxy.cpp95 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 Dadapter_loglibrary_test_tools.cpp45 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 Dtoken_sync_kit_test.cpp48 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 Dhks_at_api_wrap.cpp96 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 Dapp_account_info.cpp370 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 Daccount_data_storage.cpp162 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 Dbase_remote_command.h70 nlohmann::json ToHapTokenInfosJson(const HapTokenInfoForSync &tokenInfo);
72 nlohmann::json ToNativeTokenInfoJson(const NativeTokenInfoForSync& tokenInfo);
H A Dupdate_remote_hap_token_command.h43 const HapTokenInfoForSync& tokenInfo);
/base/security/access_token/interfaces/innerkits/accesstoken/src/
H A Daccesstoken_callbacks.cpp75 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 Dtoken_sync_kit.h32 static int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo);
H A Dtoken_sync_kit_loader.h29 int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const override;
/base/security/access_token/services/tokensyncmanager/src/remote/
H A Dremote_command_factory.cpp52 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 Dappspawn_adapter.cpp50 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 Di_token_sync_callback.h38 virtual int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
/base/security/access_token/interfaces/innerkits/accesstoken/include/
H A Dtoken_sync_kit_interface.h42 virtual int32_t UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const = 0;
/base/security/access_token/frameworks/tokensync/include/
H A Di_token_sync_manager.h40 virtual int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
/base/security/access_token/interfaces/innerkits/nativetoken/include/
H A Dnativetoken_kit.h39 extern uint64_t GetAccessTokenId(NativeTokenInfoParams *tokenInfo);

Completed in 8 milliseconds

123