Home
last modified time | relevance | path

Searched refs:tokenInfo (Results 1 – 25 of 43) sorted by relevance

12

/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken.c413 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/
Dscreenlock_appinfo.cpp39 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/
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 …]
Dupdate_remote_hap_token_command.cpp33 …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/
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.t… in UpdateRemoteHapTokenInfo()
50 return TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
Dtoken_sync_manager_client.cpp64 int TokenSyncManagerClient::UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const in UpdateRemoteHapTokenInfo()
72 return proxy->UpdateRemoteHapTokenInfo(tokenInfo); in UpdateRemoteHapTokenInfo()
Dtoken_sync_manager_client.h37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) const;
Dtoken_sync_manager_proxy.h37 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
Dtoken_sync_manager_proxy.cpp95 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/
Dtoken_sync_kit_test.cpp48 HapTokenInfoForSync tokenInfo; variable
51 TokenSyncManagerClient::GetInstance().UpdateRemoteHapTokenInfo(tokenInfo));
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_info.cpp313 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/
Dnative_token_info_inner.cpp54 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/
Dbase_remote_command.h58 nlohmann::json ToHapTokenInfosJson(const HapTokenInfoForSync &tokenInfo);
60 nlohmann::json ToNativeTokenInfoJson(const NativeTokenInfoForSync& tokenInfo);
Dupdate_remote_hap_token_command.h43 const HapTokenInfoForSync& tokenInfo);
/base/security/access_token/services/tokensyncmanager/src/remote/
Dremote_command_factory.cpp42 …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/
Dnativetoken_kit.h39 extern uint64_t GetAccessTokenId(NativeTokenInfoParams *tokenInfo);
/base/security/access_token/interfaces/innerkits/tokensync/include/
Dtoken_sync_kit.h32 static int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo);
/base/security/access_token/
DREADME_zh.md60 …: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/
Di_token_sync_manager.h47 virtual int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) = 0;
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record_manager.cpp89 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/
Dsensor_manager.cpp201 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/
Daccesstoken_kit_test.cpp159 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/
Daccesstoken_deny_test.cpp170 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/
Dtoken_sync_manager_service.h46 int UpdateRemoteHapTokenInfo(const HapTokenInfoForSync& tokenInfo) override;
/base/security/access_token/services/tokensyncmanager/include/remote/
Dremote_command_factory.h44 const std::string &dstDeviceId, const HapTokenInfoForSync& tokenInfo);

12