/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | pseudo.rs | 23 authority: Option<String>, field 35 authority: None, in new() 44 self.authority.is_none() in is_empty() 53 self.authority.is_some() in contains_authority() 57 pub fn authority(&self) -> Option<&str> { in authority() method 58 self.authority.as_deref() in authority() 63 self.authority = authority; in set_authority() 68 self.authority.take() in take_authority() 170 assert!(pseudo.authority.is_none()); in ut_pseudo_headers_new() 204 assert!(pseudo.authority().is_none()); in ut_pseudo_headers_authority() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/ |
H A D | pseudo.rs | 23 authority: Option<String>, field 34 authority: None, in new() 43 self.authority.is_none() in is_empty() 52 self.authority.is_some() in contains_authority() 56 pub fn authority(&self) -> Option<&str> { in authority() method 57 self.authority.as_deref() in authority() 62 self.authority = authority; in set_authority() 67 self.authority.take() in take_authority() 169 assert!(pseudo.authority.is_none()); in ut_pseudo_headers_new() 203 assert!(pseudo.authority().is_none()); in ut_pseudo_headers_authority() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/uri/src/ |
H A D | uri.cpp | 193 string authority = GetAuthority(); in ParseUserInfo() local 194 if (authority.empty()) { in ParseUserInfo() 198 size_t end = authority.find_last_of(USER_HOST_SEPARATOR); in ParseUserInfo() 199 return (end == NOT_FOUND) ? EMPTY : authority.substr(0, end); in ParseUserInfo() 216 string authority = GetAuthority(); in ParseHost() local 217 if (authority.empty()) { in ParseHost() 224 size_t portSeparator = authority.find_first_of(PORT_SEPARATOR, start); in ParseHost() 229 host = authority.substr(start, end - start); in ParseHost() 249 string authority = GetAuthority(); in ParsePort() local 250 if (authority.empty()) { in ParsePort() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
H A D | proxy.rs | 99 .authority(info.authority().clone()); in via_proxy() 150 pub(crate) authority: Authority, 164 let (scheme, authority, _, _) = uri.into_parts(); in new() 169 authority: authority.unwrap(), in new() 173 pub(crate) fn authority(&self) -> &Authority { in authority() method 174 &self.authority in authority() 303 assert_eq!(info.authority.to_string(), "www.aaa.com:80"); in ut_proxies() 310 assert_eq!(info.authority.to_string(), "www.bbb.com:80"); in ut_proxies() 322 assert_eq!(info.authority.to_string(), "www.aaa.com:80"); in ut_proxies()
|
H A D | redirect.rs | 75 if location.scheme().is_none() || location.authority().is_none() { in redirect() 78 let authority = origin.authority().cloned(); in redirect() localVariable 80 location = Uri::from_raw_parts(scheme, authority, path, query); in redirect() 86 if location.authority() != previous.authority() { in redirect()
|
H A D | pool.rs | 52 pub(crate) fn new(scheme: Scheme, authority: Authority) -> Self { in new() 53 Self(scheme, authority) in new() 74 uri.authority().unwrap().clone(), in ut_pool_get()
|
H A D | normalizer.rs | 94 new_uri = new_uri.authority(format!("{}:{}", host.as_str(), port).as_bytes()); in format() 198 uri.authority().unwrap().to_str() in format_host_value() 231 .authority("example.com") in ut_uri_format()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 83 authority: Option<Authority>, field 97 authority: None, in http() 149 self.authority.as_ref() in authority() 243 authority, in from_bytes() 314 authority: Option<Authority>, in from_raw_parts() 320 authority, in from_raw_parts() 524 authority: None, in default() 1167 &unchecked_uri.authority, in validity_check() 1252 .authority($res1.1) 1342 .authority("hyper.rs:80") in build_from_instance() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | batch_uri.cpp | 62 auto &&authority = uriInner.GetAuthority(); in InitFileUriInfo() 63 TAG_LOGD(AAFwkTag::URIPERMMGR, "Authority of uri is %{public}s.", authority.c_str()); in InitFileUriInfo() 65 if (authority == "media") { in InitFileUriInfo() 71 isTargetBundleUri[index] = (!targetBundleName.empty() && authority == targetBundleName); in InitFileUriInfo() 72 if (!callerBundleName.empty() && authority == callerBundleName) { in InitFileUriInfo() 86 if (authority == "docs") { in InitFileUriInfo()
|
H A D | uri_permission_manager_stub_impl.cpp | 462 auto &&authority = uriInner.GetAuthority(); in GrantBatchUriPermissionFor2In1Privileged() 463 if (authority != "docs" || uriStr.find(CLOUND_DOCS_URI_MARK) != std::string::npos) { in GrantBatchUriPermissionFor2In1Privileged() 738 auto &&authority = uri_inner.GetAuthority(); in GrantUriPermissionFor2In1Inner() 739 TAG_LOGD(AAFwkTag::URIPERMMGR, "The authority is %{public}s", authority.c_str()); in GrantUriPermissionFor2In1Inner() 747 if (authority == "docs" && uri.ToString().find(CLOUND_DOCS_URI_MARK) == std::string::npos) { in GrantUriPermissionFor2In1Inner() 823 auto &&authority = uri.GetAuthority(); in CheckUriPermission() 824 TAG_LOGD(AAFwkTag::URIPERMMGR, "UriAuth:%{public}s", authority.c_str()); in CheckUriPermission() 825 if (authority == "docs" && tokenIdPermission.VerifyFileAccessManagerPermission()) { in CheckUriPermission() 829 if (authority == "media") { in CheckUriPermission() 834 result[i] = (authority == callerAlterableBundleName); in CheckUriPermission()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/copy_listener/ |
H A D | trans_listener.cpp | 67 if (info.authority != FILE_MANAGER_AUTHORITY && info.authority != MEDIA_AUTHORITY) { in HandleCopyFailure() 120 info.authority = uri.GetAuthority(); in CopyFileFromSoftBus() 138 if (info.authority == FILE_MANAGER_AUTHORITY || info.authority == MEDIA_AUTHORITY) { in CopyFileFromSoftBus() 161 if (info.authority != FILE_MANAGER_AUTHORITY && info.authority != MEDIA_AUTHORITY) { in PrepareCopySession() 188 if (info.authority != FILE_MANAGER_AUTHORITY && info.authority != MEDIA_AUTHORITY) { in PrepareCopySession()
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/src/ |
H A D | js_uri.ts | 30 authority: string | null; 310 get authority(): string | null { 311 if (this.uricalss.authority === null) { 314 let thisAuthority: string = this.uricalss.authority; 384 if (this.uricalss.authority === null) { 387 let thisAuthority: string = this.uricalss.authority;
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | connector.rs | 67 proxy.via_proxy(uri).authority().unwrap().to_string() in connect() 69 uri.authority().unwrap().to_string() in connect() 92 let mut addr = uri.authority().unwrap().to_string(); in connect() 99 addr = proxy.via_proxy(uri).authority().unwrap().to_string(); in connect()
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/ |
H A D | grant_uri_permission.cpp | 169 string authority = uri.GetAuthority(); in DoGrantUriPermission() local 171 if (authority == MEDIA_AUTHORITY && path.find(".") == string::npos) { in DoGrantUriPermission() 194 string authority = uri.GetAuthority(); in CheckValidPublicUri() local 195 if (authority != MEDIA_AUTHORITY && authority != FILE_MANAGER_AUTHORITY) { in CheckValidPublicUri()
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/ |
H A D | js_uri.cpp | 256 uriData_.authority = data_; in AnalysisHostAndPath() 388 if (uriData_.authority != other.uriData_.authority) { in Equals() 445 if (!uriData_.authority.empty()) { in BuildUriString() 446 result += "//" + uriData_.authority; in BuildUriString() 564 } else if (!uriData_.authority.empty()) { in Split() 565 normalizeUri += "//" + uriData_.authority; in Split() 585 return uriData_.authority; in GetAuthority()
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | skills.h | 183 void AddAuthority(const std::string &authority); 190 bool HasAuthority(const std::string &authority); 197 void RemoveAuthority(const std::string &authority);
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/ |
H A D | BUILD.gn | 26 "include/authority", 75 "src/authority/authority_manager.cpp", 76 "src/authority/trust_group_manager.cpp",
|
/ohos5.0/foundation/ability/ability_base/test/unittest/want/ |
H A D | skills_test.cpp | 425 std::string authority = "Authority.system.test"; variable 429 base_->AddAuthority(authority); 433 EXPECT_EQ(true, base_->HasAuthority(authority)); 434 EXPECT_EQ(authority, base_->GetAuthority(0)); 436 base_->RemoveAuthority(authority); 438 EXPECT_EQ(false, base_->HasAuthority(authority)); 639 std::string authority = "authority.system.test"; variable 641 EXPECT_EQ(false, base_->HasAuthority(authority)); 644 base_->RemoveAuthority(authority); 646 EXPECT_EQ(false, base_->HasAuthority(authority));
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | skills.cpp | 227 void Skills::AddAuthority(const std::string &authority) in AddAuthority() argument 229 auto it = std::find(authorities_.begin(), authorities_.end(), authority); in AddAuthority() 231 authorities_.emplace_back(authority); in AddAuthority() 240 bool Skills::HasAuthority(const std::string &authority) in HasAuthority() argument 242 return std::find(authorities_.begin(), authorities_.end(), authority) != authorities_.end(); in HasAuthority() 250 void Skills::RemoveAuthority(const std::string &authority) in RemoveAuthority() argument 253 auto it = std::find(authorities_.begin(), authorities_.end(), authority); in RemoveAuthority()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/ |
H A D | README_zh.md | 44 │ ├── authority // 权限校验 50 │ ├── authority // 权限校验
|
/ohos5.0/docs/zh-cn/readme/ |
H A D | DeviceProfile子系统.md | 44 │ ├── authority // 权限校验 50 │ ├── authority // 权限校验
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | hmdfs_info.h | 27 std::string authority; member
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | uri_utils.cpp | 94 uriConfig.authority = uriTemp.GetAuthority(); in GetUriConfig() 98 std::string convertUri = DATA_PROXY_SCHEMA + uriConfig.authority + uriConfig.path; in GetUriConfig()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/ |
H A D | js-apis-networkSecurity.md | 109 | 2305024 | Invalid certificate authority (CA). | 189 | 2305024 | Invalid certificate authority (CA). |
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon.cpp | 519 auto authority = uri.GetAuthority(); in CheckCopyRule() local 520 info.authority = authority; in CheckCopyRule() 521 if (authority != FILE_MANAGER_AUTHORITY && authority != MEDIA_AUTHORITY) { in CheckCopyRule()
|