Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 75) sorted by relevance

123

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/
H A Dpseudo.rs23 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 Dpseudo.rs23 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 Duri.cpp193 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 Dproxy.rs99 .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 Dredirect.rs75 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 Dpool.rs52 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 Dnormalizer.rs94 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 Dmod.rs83 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 Dbatch_uri.cpp62 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 Duri_permission_manager_stub_impl.cpp462 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 Dtrans_listener.cpp67 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 Djs_uri.ts30 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 Dconnector.rs67 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 Dgrant_uri_permission.cpp169 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 Djs_uri.cpp256 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 Dskills.h183 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 DBUILD.gn26 "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 Dskills_test.cpp425 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 Dskills.cpp227 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 DREADME_zh.md44   │   ├── authority // 权限校验
50    │   ├── authority // 权限校验
/ohos5.0/docs/zh-cn/readme/
H A DDeviceProfile子系统.md44   │   ├── authority // 权限校验
50    │   ├── authority // 权限校验
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/
H A Dhmdfs_info.h27 std::string authority; member
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Duri_utils.cpp94 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 Djs-apis-networkSecurity.md109 | 2305024 | Invalid certificate authority (CA). |
189 | 2305024 | Invalid certificate authority (CA). |
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Ddaemon.cpp519 auto authority = uri.GetAuthority(); in CheckCopyRule() local
520 info.authority = authority; in CheckCopyRule()
521 if (authority != FILE_MANAGER_AUTHORITY && authority != MEDIA_AUTHORITY) { in CheckCopyRule()

123