Home
last modified time | relevance | path

Searched refs:remoteAuthParam (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp124 if (remoteAuthParam.has_value()) { in GetAuthParamStr()
618 if (!remoteAuthParam.has_value()) { in AuthUser()
709 if (remoteAuthParam.collectorTokenId.has_value()) { in AuthRemoteUser()
1359 … if (remoteAuthParam.verifierNetworkId.has_value() && remoteAuthParam.verifierNetworkId->size() != in CompleteRemoteAuthParam()
1365 …if (remoteAuthParam.collectorNetworkId.has_value() && remoteAuthParam.collectorNetworkId->size() != in CompleteRemoteAuthParam()
1371 …if (!remoteAuthParam.verifierNetworkId.has_value() && !remoteAuthParam.collectorNetworkId.has_valu… in CompleteRemoteAuthParam()
1374 …} else if (remoteAuthParam.verifierNetworkId.has_value() && !remoteAuthParam.collectorNetworkId.ha… in CompleteRemoteAuthParam()
1377 …} else if (!remoteAuthParam.verifierNetworkId.has_value() && remoteAuthParam.collectorNetworkId.ha… in CompleteRemoteAuthParam()
1388 if (remoteAuthParam.verifierNetworkId.value() == remoteAuthParam.collectorNetworkId.value()) { in CompleteRemoteAuthParam()
1393 …if (remoteAuthParam.verifierNetworkId == localNetworkId && !remoteAuthParam.collectorTokenId.has_v… in CompleteRemoteAuthParam()
[all …]
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp245 std::optional<RemoteAuthParam> remoteAuthParam = std::nullopt; in FuzzAuthUser() local
246 g_userAuthService.AuthUser(param, remoteAuthParam, callback); in FuzzAuthUser()
405 RemoteAuthParam remoteAuthParam = {}; in FuzzCompleteRemoteAuthParam() local
407 remoteAuthParam.verifierNetworkId = std::nullopt; in FuzzCompleteRemoteAuthParam()
408 g_userAuthService.CompleteRemoteAuthParam(remoteAuthParam, localNetworkId); in FuzzCompleteRemoteAuthParam()
409 remoteAuthParam.verifierNetworkId = "123"; in FuzzCompleteRemoteAuthParam()
411 g_userAuthService.CompleteRemoteAuthParam(remoteAuthParam, localNetworkId); in FuzzCompleteRemoteAuthParam()
412 remoteAuthParam.verifierNetworkId = localNetworkId; in FuzzCompleteRemoteAuthParam()
413 g_userAuthService.CompleteRemoteAuthParam(remoteAuthParam, localNetworkId); in FuzzCompleteRemoteAuthParam()
478 RemoteAuthParam remoteAuthParam = {}; in FuzzAuthRemoteUser() local
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/src/account_iam/
H A Dinner_account_iam_manager.cpp264 if (authParam.remoteAuthParam != std::nullopt) { in CopyAuthParam()
265 iamAuthParam.remoteAuthParam = UserIam::UserAuth::RemoteAuthParam(); in CopyAuthParam()
266 if (authParam.remoteAuthParam.value().verifierNetworkId != std::nullopt) { in CopyAuthParam()
267 iamAuthParam.remoteAuthParam.value().verifierNetworkId = in CopyAuthParam()
268 authParam.remoteAuthParam.value().verifierNetworkId.value(); in CopyAuthParam()
271 iamAuthParam.remoteAuthParam.value().collectorNetworkId = in CopyAuthParam()
272 authParam.remoteAuthParam.value().collectorNetworkId.value(); in CopyAuthParam()
274 if (authParam.remoteAuthParam.value().collectorTokenId != std::nullopt) { in CopyAuthParam()
275 iamAuthParam.remoteAuthParam.value().collectorTokenId = in CopyAuthParam()
276 authParam.remoteAuthParam.value().collectorTokenId.value(); in CopyAuthParam()
[all …]
H A Daccount_iam_mgr_stub.cpp461 std::optional<RemoteAuthParam> &remoteAuthParam) in ReadRemoteAuthParam() argument
471 remoteAuthParam = RemoteAuthParam(); in ReadRemoteAuthParam()
482 remoteAuthParam.value().verifierNetworkId = networkId; in ReadRemoteAuthParam()
494 remoteAuthParam.value().collectorNetworkId = networkId; in ReadRemoteAuthParam()
506 remoteAuthParam.value().collectorTokenId = tokenId; in ReadRemoteAuthParam()
526 if (ReadRemoteAuthParam(data, authParam.remoteAuthParam) != ERR_OK) { in ProcAuthUser()
H A Daccount_iam_service.cpp184 if ((authParam.remoteAuthParam == std::nullopt) && (authParam.userId == -1) && in AuthUser()
/ohos5.0/base/account/os_account/frameworks/account_iam/src/
H A Daccount_iam_mgr_proxy.cpp337 const std::optional<RemoteAuthParam> &remoteAuthParam) in WriteRemoteAuthParam() argument
339 bool res = (remoteAuthParam != std::nullopt); in WriteRemoteAuthParam()
347 res = (remoteAuthParam.value().verifierNetworkId != std::nullopt); in WriteRemoteAuthParam()
353 if (!data.WriteString(remoteAuthParam.value().verifierNetworkId.value())) { in WriteRemoteAuthParam()
358 res = (remoteAuthParam.value().collectorNetworkId != std::nullopt); in WriteRemoteAuthParam()
364 if (!data.WriteString(remoteAuthParam.value().collectorNetworkId.value())) { in WriteRemoteAuthParam()
369 res = (remoteAuthParam.value().collectorTokenId != std::nullopt); in WriteRemoteAuthParam()
375 if (!data.WriteUint32(remoteAuthParam.value().collectorTokenId.value())) { in WriteRemoteAuthParam()
399 if (!WriteRemoteAuthParam(data, authParam.remoteAuthParam)) { in AuthUser()
H A Daccount_iam_client.cpp248 authParam.remoteAuthParam = RemoteAuthParam(); in AuthUser()
250 …authParam.remoteAuthParam.value().verifierNetworkId = authOptions.remoteAuthOptions.verifierNetwor… in AuthUser()
253 …authParam.remoteAuthParam.value().collectorNetworkId = authOptions.remoteAuthOptions.collectorNetw… in AuthUser()
256 …authParam.remoteAuthParam.value().collectorTokenId = authOptions.remoteAuthOptions.collectorTokenI… in AuthUser()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Duser_auth_client_impl.cpp229 authParam.authIntent, Common::GetBoolStr(authParam.remoteAuthParam.has_value())); in BeginAuthentication()
230 if (authParam.remoteAuthParam.has_value()) { in BeginAuthentication()
233 Common::GetBoolStr(authParam.remoteAuthParam->verifierNetworkId.has_value()), in BeginAuthentication()
234 Common::GetBoolStr(authParam.remoteAuthParam->collectorNetworkId.has_value()), in BeginAuthentication()
235 Common::GetBoolStr(authParam.remoteAuthParam->collectorTokenId.has_value())); in BeginAuthentication()
265 std::optional<RemoteAuthParam> remoteAuthParam = authParam.remoteAuthParam; in BeginAuthentication() local
266 return proxy->AuthUser(authParamInner, remoteAuthParam, wrapper); in BeginAuthentication()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/src/
H A Duser_auth_stub.cpp438 std::optional<RemoteAuthParam> remoteAuthParam; in AuthUserStub() local
439 if (!ReadRemoteAuthParam(data, remoteAuthParam)) { in AuthUserStub()
455 uint64_t contextId = AuthUser(authParam, remoteAuthParam, callback); in AuthUserStub()
786 …AuthStub::ReadRemoteAuthParam(MessageParcel &data, std::optional<RemoteAuthParam> &remoteAuthParam) in ReadRemoteAuthParam() argument
795 remoteAuthParam = std::nullopt; in ReadRemoteAuthParam()
798 remoteAuthParam = RemoteAuthParam{}; in ReadRemoteAuthParam()
800 if (!ReadOptionalString(data, remoteAuthParam->verifierNetworkId)) { in ReadRemoteAuthParam()
805 if (!ReadOptionalString(data, remoteAuthParam->collectorNetworkId)) { in ReadRemoteAuthParam()
810 if (!ReadOptionalUint32(data, remoteAuthParam->collectorTokenId)) { in ReadRemoteAuthParam()
H A Duser_auth_proxy.cpp274 …y::WriteRemoteAuthParam(MessageParcel &data, const std::optional<RemoteAuthParam> &remoteAuthParam) in WriteRemoteAuthParam() argument
276 if (!data.WriteBool(remoteAuthParam.has_value())) { in WriteRemoteAuthParam()
281 if (!remoteAuthParam.has_value()) { in WriteRemoteAuthParam()
285 if (!WriteOptionalString(data, remoteAuthParam.value().verifierNetworkId)) { in WriteRemoteAuthParam()
290 if (!WriteOptionalString(data, remoteAuthParam.value().collectorNetworkId)) { in WriteRemoteAuthParam()
295 if (!WriteOptionalUint32(data, remoteAuthParam.value().collectorTokenId)) { in WriteRemoteAuthParam()
489 …4_t UserAuthProxy::AuthUser(AuthParamInner &param, std::optional<RemoteAuthParam> &remoteAuthParam, in AuthUser() argument
509 if (!WriteRemoteAuthParam(data, remoteAuthParam)) { in AuthUser()
/ohos5.0/base/useriam/user_auth_framework/services/ipc/inc/
H A Duser_auth_service.h52 uint64_t AuthUser(AuthParamInner &param, std::optional<RemoteAuthParam> &remoteAuthParam,
93 RemoteAuthParam &remoteAuthParam, const std::shared_ptr<ContextCallback> &contextCallback,
112 … bool CompleteRemoteAuthParam(RemoteAuthParam &remoteAuthParam, const std::string &localNetworkId);
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
H A Duser_auth_proxy.h41 uint64_t AuthUser(AuthParamInner &param, std::optional<RemoteAuthParam> &remoteAuthParam,
64 …l WriteRemoteAuthParam(MessageParcel &data, const std::optional<RemoteAuthParam> &remoteAuthParam);
H A Duser_auth_stub.h55 bool ReadRemoteAuthParam(MessageParcel &data, std::optional<RemoteAuthParam> &remoteAuthParam);
/ohos5.0/base/useriam/user_auth_framework/interfaces/inner_api/
H A Duser_auth_client_defines.h64 std::optional<RemoteAuthParam> remoteAuthParam; member
/ohos5.0/base/account/os_account/interfaces/innerkits/account_iam/native/include/
H A Daccount_iam_info.h105 std::optional<RemoteAuthParam> remoteAuthParam; member
H A Daccount_iam_mgr_proxy.h63 …l WriteRemoteAuthParam(MessageParcel &data, const std::optional<RemoteAuthParam> &remoteAuthParam);
/ohos5.0/base/account/os_account/services/accountmgr/include/account_iam/
H A Daccount_iam_mgr_stub.h60 … ErrCode ReadRemoteAuthParam(MessageParcel &data, std::optional<RemoteAuthParam> &remoteAuthParam);
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
H A Duser_auth_interface.h50 … virtual uint64_t AuthUser(AuthParamInner &param, std::optional<RemoteAuthParam> &remoteAuthParam,
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_user_auth_service.h47 …_METHOD3(AuthUser, uint64_t(AuthParamInner &param, std::optional<RemoteAuthParam> &remoteAuthParam,
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Duser_auth_service_test.cpp561 std::optional<RemoteAuthParam> remoteAuthParam = std::nullopt; variable
570 uint64_t contextId = service.AuthUser(authParam, remoteAuthParam, callbackInterface);
584 std::optional<RemoteAuthParam> remoteAuthParam = std::nullopt; variable
588 uint64_t contextId = service.AuthUser(authParam, remoteAuthParam, callbackInterface);
596 contextId = service.AuthUser(authParam, remoteAuthParam, callbackInterface);
610 std::optional<RemoteAuthParam> remoteAuthParam = std::nullopt; variable
632 uint64_t contextId = service.AuthUser(authParam, remoteAuthParam, callbackInterface);
645 contextId = service.AuthUser(authParam, remoteAuthParam, callbackInterface);
H A Duser_auth_stub_test.cpp352 … std::optional<RemoteAuthParam> &remoteAuthParam, sptr<UserAuthCallbackInterface> &callback) { in __anon5dedf9810602() argument
/ohos5.0/base/useriam/user_auth_framework/test/unittest/inner_api/src/
H A Duser_auth_proxy_test.cpp244 … std::optional<RemoteAuthParam> &remoteAuthParam, sptr<UserAuthCallbackInterface> &callback) { in __anoneec003360b02() argument
H A Duser_auth_client_test.cpp332 … std::optional<RemoteAuthParam> &remoteAuthParam, sptr<UserAuthCallbackInterface> &callback) { in __anon4aad99530602() argument