/base/security/access_token/interfaces/innerkits/nativetoken/src/ |
D | nativetoken.c | 413 static uint32_t CheckProcessInfo(NativeTokenInfoParams *tokenInfo, int32_t *aplRet) in CheckProcessInfo() argument 415 if ((tokenInfo->processName == NULL) || strlen(tokenInfo->processName) > MAX_PROCESS_NAME_LEN || in CheckProcessInfo() 416 strlen(tokenInfo->processName) == 0) { in CheckProcessInfo() 420 …uint32_t retDcap = CheckStrArray(tokenInfo->dcaps, tokenInfo->dcapsNum, MAX_DCAPS_NUM, MAX_DCAP_LE… in CheckProcessInfo() 425 …uint32_t retPerm = CheckStrArray(tokenInfo->perms, tokenInfo->permsNum, MAX_PERM_NUM, MAX_PERM_LEN… in CheckProcessInfo() 431 … uint32_t retAcl = CheckStrArray(tokenInfo->acls, tokenInfo->aclsNum, MAX_PERM_NUM, MAX_PERM_LEN); in CheckProcessInfo() 437 if (tokenInfo->aclsNum > tokenInfo->permsNum) { in CheckProcessInfo() 441 int32_t apl = GetAplLevel(tokenInfo->aplStr); in CheckProcessInfo() 463 static uint32_t AddNewTokenToListAndFile(const NativeTokenInfoParams *tokenInfo, in AddNewTokenToListAndFile() argument 469 id = CreateNativeTokenId(tokenInfo->processName); in AddNewTokenToListAndFile() [all …]
|
/base/theme/screenlock_mgr/utils/src/ |
D | screenlock_appinfo.cpp | 39 NativeTokenInfo tokenInfo; in GetAppInfoByToken() local 40 if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != 0) { in GetAppInfoByToken() 44 appInfo.bundleName = tokenInfo.processName; in GetAppInfoByToken() 45 appInfo.appId = tokenInfo.processName; in GetAppInfoByToken()
|
/base/security/access_token/services/tokensyncmanager/src/command/ |
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 …]
|
D | update_remote_hap_token_command.cpp | 33 …nst std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo) in UpdateRemoteHapTokenCommand() argument 34 : updateTokenInfo_(tokenInfo) in UpdateRemoteHapTokenCommand()
|
/base/security/access_token/interfaces/innerkits/tokensync/src/ |
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.t… in UpdateRemoteHapTokenInfo() 50 return TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
|
D | token_sync_manager_client.cpp | 64 int TokenSyncManagerClient::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo() 72 return proxy->UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
|
D | token_sync_manager_client.h | 37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const;
|
D | token_sync_manager_proxy.h | 37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
|
D | token_sync_manager_proxy.cpp | 95 int TokenSyncManagerProxy::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) in UpdateRemoteHapTokenInfo() argument 101 tokenInfoParcel.hapTokenInfoForSyncParams = tokenInfo; in UpdateRemoteHapTokenInfo()
|
/base/security/access_token/interfaces/innerkits/tokensync/test/unittest/src/ |
D | token_sync_kit_test.cpp | 48 HapTokenInfoForSync tokenInfo; variable 51 TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo));
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_info.cpp | 313 OAuthTokenInfo tokenInfo; in SetOAuthToken() local 314 tokenInfo.token = token; in SetOAuthToken() 315 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthToken() 361 OAuthTokenInfo tokenInfo; in SetOAuthTokenVisibility() local 362 tokenInfo.authList.emplace(bundleName); in SetOAuthTokenVisibility() 363 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthTokenVisibility() 518 OAuthTokenInfo tokenInfo; in ParseTokenInfosFromJson() local 520 it->at(OAUTH_TOKEN).get_to(tokenInfo.token); in ParseTokenInfosFromJson() 523 it->at(OAUTH_TYPE).get_to(tokenInfo.authType); in ParseTokenInfosFromJson() 526 it->at(OAUTH_AUTH_LIST).get_to(tokenInfo.authList); in ParseTokenInfosFromJson() [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | native_token_info_inner.cpp | 54 int NativeTokenInfoInner::Init(const TokenInfo& tokenInfo, const std::vector<std::string>& dcap, in Init() argument 58 tokenInfoBasic_.tokenID = tokenInfo.id; in Init() 59 if (!DataValidator::IsProcessNameValid(tokenInfo.processName)) { in Init() 64 tokenInfoBasic_.processName = tokenInfo.processName; in Init() 65 if (!DataValidator::IsAplNumValid(tokenInfo.apl)) { in Init() 68 tokenInfoBasic_.tokenID, tokenInfo.apl); in Init() 71 tokenInfoBasic_.apl = static_cast<ATokenAplEnum>(tokenInfo.apl); in Init() 75 permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(tokenInfo.id, in Init()
|
/base/security/access_token/services/tokensyncmanager/include/command/ |
D | base_remote_command.h | 58 nlohmann::json ToHapTokenInfosJson(const HapTokenInfoForSync &tokenInfo); 60 nlohmann::json ToNativeTokenInfoJson(const NativeTokenInfoForSync& tokenInfo);
|
D | update_remote_hap_token_command.h | 43 const HapTokenInfoForSync& tokenInfo);
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | remote_command_factory.cpp | 42 …nst std::string &srcDeviceId, const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo) in NewUpdateRemoteHapTokenCommand() argument 44 return std::make_shared<UpdateRemoteHapTokenCommand>(srcDeviceId, dstDeviceId, tokenInfo); in NewUpdateRemoteHapTokenCommand()
|
/base/security/access_token/interfaces/innerkits/nativetoken/include/ |
D | nativetoken_kit.h | 39 extern uint64_t GetAccessTokenId(NativeTokenInfoParams *tokenInfo);
|
/base/security/access_token/interfaces/innerkits/tokensync/include/ |
D | token_sync_kit.h | 32 static int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo);
|
/base/security/access_token/ |
D | README_zh.md | 60 …:string& appIDDesc, int32_t apiVersion, const HapPolicyParams& policy); | 更新tokenId对应的tokenInfo信息 | 61 | int DeleteToken(AccessTokenID tokenID); | 删除应用tokenID及其对应的tokenInfo信息 | 69 …TokenInfo(AccessTokenID tokenID, HapTokenInfo& hapTokenInfoRes); | 查询指定tokenID对应的hap包的tokenInfo信息 | 70 …o(AccessTokenID tokenID, NativeTokenInfo& nativeTokenInfoRes); | 查询指定tokenID对应的native的tokenInfo信息 |
|
/base/security/access_token/frameworks/tokensync/include/ |
D | i_token_sync_manager.h | 47 virtual int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
|
/base/security/access_token/services/privacymanager/src/record/ |
D | permission_record_manager.cpp | 89 HapTokenInfo tokenInfo; in GetPermissionRecord() local 90 if (AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo) != Constant::SUCCESS) { in GetPermissionRecord() 232 HapTokenInfo tokenInfo; in CreateBundleUsedRecord() local 233 if (AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo) != Constant::SUCCESS) { in CreateBundleUsedRecord() 240 bundleRecord.bundleName = tokenInfo.bundleName; in CreateBundleUsedRecord() 719 HapTokenInfo tokenInfo; in IsAllowedUsingPermission() local 754 HapTokenInfo tokenInfo; in GetDeviceId() local 755 if (AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo) != Constant::SUCCESS) { in GetDeviceId() 758 if (tokenInfo.deviceID == DEFAULT_DEVICEID) { // local in GetDeviceId() 761 return tokenInfo.deviceID; in GetDeviceId() [all …]
|
/base/sensors/sensor/services/sensor/src/ |
D | sensor_manager.cpp | 201 NativeTokenInfo tokenInfo; in GetPackageName() local 202 if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != 0) { in GetPackageName() 206 packageName = tokenInfo.processName; in GetPackageName()
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/ |
D | accesstoken_kit_test.cpp | 159 HapTokenInfo tokenInfo; variable 160 …RT_EQ(AccessTokenError::ERR_SA_WORK_ABNORMAL, AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo)); 172 NativeTokenInfo tokenInfo; variable 173 …EQ(AccessTokenError::ERR_SA_WORK_ABNORMAL, AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo));
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | accesstoken_deny_test.cpp | 170 HapTokenInfo tokenInfo; variable 171 …T_EQ(AccessTokenError::ERR_PERMISSION_DENIED, AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo)); 183 NativeTokenInfo tokenInfo; variable 184 …Q(AccessTokenError::ERR_PERMISSION_DENIED, AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo));
|
/base/security/access_token/services/tokensyncmanager/include/service/ |
D | token_sync_manager_service.h | 46 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
|
/base/security/access_token/services/tokensyncmanager/include/remote/ |
D | remote_command_factory.h | 44 const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo);
|