/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
H A D | mock_domain_so_plugin.cpp | 60 PluginBussnessError *Auth(const PluginDomainAccountInfo *domainAccountInfo, const PluginUint8Vector *credential,
in Auth() argument 84 PluginBussnessError *BindAccount(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId)
in BindAccount() argument 97 PluginDomainAccountInfo **domainAccountInfo)
in GetAccountInfo() 104 if (strcmp(options->domainAccountInfo.accountName.data, "testNewAccountInvalid") == 0) {
in GetAccountInfo() 111 *domainAccountInfo = (PluginDomainAccountInfo *)malloc(sizeof(PluginDomainAccountInfo));
in GetAccountInfo() 112 if (*domainAccountInfo == NULL) {
in GetAccountInfo() 117 (*domainAccountInfo)->serverConfigId.data = nullptr;
in GetAccountInfo() 118 SetPluginString(options->domainAccountInfo.domain.data, (*domainAccountInfo)->domain);
in GetAccountInfo() 119 SetPluginString(options->domainAccountInfo in GetAccountInfo() 96 GetAccountInfo(const PluginGetDomainAccountInfoOptions *options, const int32_t callerLocalId, PluginDomainAccountInfo **domainAccountInfo) GetAccountInfo() argument 131 IsAuthenticationExpired(const PluginDomainAccountInfo *domainAccountInfo, const PluginUint8Vector *token, int32_t *isValid) IsAuthenticationExpired() argument 183 UpdateAccountInfo(const PluginDomainAccountInfo *domainAccountInfo, const PluginDomainAccountInfo *newDomainAccountInfo) UpdateAccountInfo() argument [all...] |
/base/account/os_account/interfaces/innerkits/domain_account/native/include/ |
H A D | domain_plugin.h | 59 PluginDomainAccountInfo domainAccountInfo; member 69 PluginDomainAccountInfo domainAccountInfo; member 82 typedef PluginBussnessError* (*GetAccountServerConfigFunc)(const PluginDomainAccountInfo *domainAccountInfo, 84 typedef PluginBussnessError* (*AuthFunc)(const PluginDomainAccountInfo *domainAccountInfo, 86 typedef PluginBussnessError* (*AuthWithPopupFunc)(const PluginDomainAccountInfo *domainAccountInfo, 88 typedef PluginBussnessError* (*AuthWithTokenFunc)(const PluginDomainAccountInfo *domainAccountInfo, 91 const int32_t callerLocalId, PluginDomainAccountInfo **domainAccountInfo); 92 typedef PluginBussnessError* (*GetAuthStatusInfoFunc)(const PluginDomainAccountInfo *domainAccountInfo, 94 typedef PluginBussnessError* (*BindAccountFunc)(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId, 96 typedef PluginBussnessError* (*UnbindAccountFunc)(const PluginDomainAccountInfo *domainAccountInfo); [all...] |
H A D | domain_account_common.h | 135 DomainAccountInfo domainAccountInfo;
member
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_domain_account_callback.cpp | 32 const OsAccountType &type, const DomainAccountInfo &domainAccountInfo, in CheckAndCreateDomainAccountCallback() 34 : type_(type), domainAccountInfo_(domainAccountInfo), accountOptions_(accountOptions), innerCallback_(callback) in CheckAndCreateDomainAccountCallback() 55 DomainAccountInfo domainAccountInfo; in OnResult() local 56 domainAccountInfo.accountName_ = parameters->GetStringParam("accountName"); in OnResult() 57 domainAccountInfo.domain_ = parameters->GetStringParam("domain"); in OnResult() 58 domainAccountInfo.accountId_ = parameters->GetStringParam("accountId"); in OnResult() 59 domainAccountInfo.serverConfigId_ = parameters->GetStringParam("serverConfigId"); in OnResult() 60 if ((domainAccountInfo.accountName_.empty()) || (domainAccountInfo.domain_.empty())) { in OnResult() 64 errCode = IInnerOsAccountManager::GetInstance().BindDomainAccount(type_, domainAccountInfo, in OnResult() 31 CheckAndCreateDomainAccountCallback( const OsAccountType &type, const DomainAccountInfo &domainAccountInfo, const sptr<IDomainAccountCallback> &callback, const CreateOsAccountForDomainOptions &accountOptions) CheckAndCreateDomainAccountCallback() argument 71 BindDomainAccountCallback( std::shared_ptr<IOsAccountControl> &osAccountControl, const DomainAccountInfo &domainAccountInfo, const OsAccountInfo &osAccountInfo, const sptr<IDomainAccountCallback> &callback) BindDomainAccountCallback() argument [all...] |
H A D | inner_os_account_manager.cpp | 630 ErrCode IInnerOsAccountManager::BindDomainAccount(const OsAccountType &type, const DomainAccountInfo &domainAccountInfo, in RetryToGetAccount() argument 635 if (CheckDomainAccountBound(osAccountInfos, domainAccountInfo)) { in RetryToGetAccount() 650 osAccountInfos[0].SetLocalName(domainAccountInfo.accountName_); in RetryToGetAccount() 652 osAccountInfos[0].SetDomainInfo(domainAccountInfo); in RetryToGetAccount() 658 ErrCode errCode = PrepareOsAccountInfo(domainAccountInfo.accountName_, options.shortName, in RetryToGetAccount() 659 type, domainAccountInfo, osAccountInfo); in RetryToGetAccount() 671 std::make_shared<BindDomainAccountCallback>(osAccountControl_, domainAccountInfo, osAccountInfo, callback); in RetryToGetAccount() 677 domainAccountInfo, osAccountInfo.GetLocalId(), callbackWrapper); in RetryToGetAccount() 786 DomainAccountInfo domainAccountInfo; in RetryToGetAccount() local 787 osAccountInfo.GetDomainInfo(domainAccountInfo); in RetryToGetAccount() 1613 DomainAccountInfo domainAccountInfo; RetryToGetAccount() local [all...] |
/base/account/os_account/frameworks/domain_account/test/moduletest/include/ |
H A D | mock_domain_so_plugin.h | 25 PluginBussnessError *Auth(const PluginDomainAccountInfo *domainAccountInfo, const PluginUint8Vector *credential, 27 PluginBussnessError *BindAccount(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId); 29 PluginDomainAccountInfo **domainAccountInfo); 30 PluginBussnessError *IsAuthenticationExpired(const PluginDomainAccountInfo *domainAccountInfo, 33 PluginBussnessError *UpdateAccountInfo(const PluginDomainAccountInfo *domainAccountInfo,
|
/base/account/os_account/services/accountmgr/src/domain_account/ |
H A D | inner_domain_account_manager.cpp | 513 PluginDomainAccountInfo domainAccountInfo;
in SetPluginGetDomainAccessTokenOptions() local 514 SetPluginDomainAccountInfo(info, domainAccountInfo);
in SetPluginGetDomainAccessTokenOptions() 522 pluginOptions.domainAccountInfo = domainAccountInfo;
in SetPluginGetDomainAccessTokenOptions() 597 PluginDomainAccountInfo domainAccountInfo;
in GetAccountServerConfig() local 598 SetPluginDomainAccountInfo(info, domainAccountInfo);
in GetAccountServerConfig() 600 PluginBussnessError* error = (*reinterpret_cast<GetAccountServerConfigFunc>(iter->second))(&domainAccountInfo,
in GetAccountServerConfig() 603 CleanPluginString(&(domainAccountInfo.domain.data), domainAccountInfo.domain.length);
in GetAccountServerConfig() 604 CleanPluginString(&(domainAccountInfo in GetAccountServerConfig() 627 PluginDomainAccountInfo domainAccountInfo; PluginAuth() local 697 PluginDomainAccountInfo domainAccountInfo; PluginBindAccount() local 716 PluginDomainAccountInfo domainAccountInfo; PluginUnBindAccount() local 734 PluginDomainAccountInfo domainAccountInfo; PluginIsAccountTokenValid() local 786 PluginDomainAccountInfo domainAccountInfo; PluginAuthWithPopup() local 808 PluginDomainAccountInfo domainAccountInfo; PluginAuthToken() local 832 PluginDomainAccountInfo domainAccountInfo; PluginGetAuthStatusInfo() local 1180 PluginDomainAccountInfo domainAccountInfo; IsAuthenticationExpired() local [all...] |
H A D | status_listener_manager.cpp | 89 if (!report.domainAccountInfo.Marshalling(parcel)) { in DomainAccountEventParcel() 90 ACCOUNT_LOGE("write domainAccountInfo failed."); in DomainAccountEventParcel()
|
/base/account/os_account/services/accountmgr/test/unittest/domain_account/mock/ |
H A D | mock_musl.cpp | 85 PluginBussnessError* GetAccountServerConfig(const PluginDomainAccountInfo *domainAccountInfo, in GetAccountServerConfig() argument 97 PluginBussnessError* Auth(const PluginDomainAccountInfo *domainAccountInfo, in Auth() argument 109 PluginBussnessError* AuthWithPopup(const PluginDomainAccountInfo *domainAccountInfo, in AuthWithPopup() argument 121 PluginBussnessError* AuthWithToken(const PluginDomainAccountInfo *domainAccountInfo, in AuthWithToken() argument 134 PluginDomainAccountInfo **domainAccountInfo) in GetAccountInfo() 145 PluginBussnessError* GetAuthStatusInfo(const PluginDomainAccountInfo *domainAccountInfo, in GetAuthStatusInfo() argument 157 PluginBussnessError* BindAccount(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId, in BindAccount() argument 169 PluginBussnessError* UnbindAccount(const PluginDomainAccountInfo *domainAccountInfo) in UnbindAccount() argument 180 PluginBussnessError* UpdateAccountInfo(const PluginDomainAccountInfo *domainAccountInfo, in UpdateAccountInfo() argument 192 PluginBussnessError* IsAccountTokenValid(const PluginDomainAccountInfo *domainAccountInfo, in IsAccountTokenValid() argument 133 GetAccountInfo(const PluginGetDomainAccountInfoOptions *options, const int32_t callerLocalId, PluginDomainAccountInfo **domainAccountInfo) GetAccountInfo() argument [all...] |
/base/account/os_account/frameworks/domain_account/src/ |
H A D | domain_account_common.cpp | 102 DomainAccountInfo *domainAccountInfo = new (std::nothrow) DomainAccountInfo(); in Unmarshalling() local 103 if (domainAccountInfo == nullptr) { in Unmarshalling() 107 if (!domainAccountInfo->ReadFromParcel(parcel)) { in Unmarshalling() 109 delete domainAccountInfo; in Unmarshalling() 110 domainAccountInfo = nullptr; in Unmarshalling() 113 return domainAccountInfo; in Unmarshalling()
|
H A D | domain_account_status_listener_manager.cpp | 35 if (!report.domainAccountInfo.ReadFromParcel(parcel)) { in OnResult()
|
/base/account/os_account/services/accountmgr/src/ |
H A D | account_event_provider.cpp | 50 want.SetParam("domain", report->domainAccountInfo.domain_); in EventPublish() 51 want.SetParam("accountName", report->domainAccountInfo.accountName_); in EventPublish()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_domain_account_callback.h | 44 const DomainAccountInfo &domainAccountInfo, const OsAccountInfo &osAccountInfo,
|
H A D | iinner_os_account_manager.h | 111 ErrCode BindDomainAccount(const OsAccountType &type, const DomainAccountInfo &domainAccountInfo,
|
/base/account/os_account/interfaces/kits/napi/domain_account/include/ |
H A D | napi_domain_server_manager.h | 33 AccountSA::DomainAccountInfo domainAccountInfo; member
|
H A D | napi_domain_account_manager.h | 84 AccountSA::DomainAccountInfo domainAccountInfo;
member
|
/base/account/os_account/interfaces/kits/napi/domain_account/src/ |
H A D | napi_domain_account_manager.cpp | 106 static napi_value CreateNapiDomainAccountInfo(napi_env env, const DomainAccountInfo &domainAccountInfo)
in CreateNapiDomainAccountInfo() argument 111 NAPI_CALL(env, napi_create_string_utf8(env, domainAccountInfo.accountName_.c_str(), NAPI_AUTO_LENGTH, &napiName));
in CreateNapiDomainAccountInfo() 114 NAPI_CALL(env, napi_create_string_utf8(env, domainAccountInfo.domain_.c_str(), NAPI_AUTO_LENGTH, &napiDomain));
in CreateNapiDomainAccountInfo() 118 env, napi_create_string_utf8(env, domainAccountInfo.accountId_.c_str(), NAPI_AUTO_LENGTH, &napiAccountId));
in CreateNapiDomainAccountInfo() 127 napi_value napiDomainAccountInfo = CreateNapiDomainAccountInfo(param->env, param->domainAccountInfo);
in CreateNapiGetAccessTokenOptions() 128 NAPI_CALL(param->env, napi_set_named_property(param->env, napiOptions, "domainAccountInfo", napiDomainAccountInfo));
in CreateNapiGetAccessTokenOptions() 214 std::string errMsg = "Parameter error. The type of \"domainAccountInfo\" must be DomainAccountInfo";
in ParseParamForUpdateAccountToken() 241 std::string errMsg = "Parameter error. The type of \"domainAccountInfo\" must be DomainAccountInfo";
in ParseParamForIsAuthenticationExpired() 328 param->env, param->domainAccountInfo.accountName_.c_str(), NAPI_AUTO_LENGTH, &napiName));
in CreatePluginAccountInfoOptions() 332 napi_create_string_utf8(param->env, param->domainAccountInfo in CreatePluginAccountInfoOptions() [all...] |
H A D | napi_domain_server_manager.cpp | 218 if (!ParseDomainAccountInfo(env, argv[0], context->domainAccountInfo)) { in ParseContextFoGetAccountServerConfig() 232 asyncContext->errCode = DomainAccountClient::GetInstance().GetAccountServerConfig(asyncContext->domainAccountInfo, in GetAccountServerConfigExecuteCB()
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | inner_account_iam_manager.cpp | 380 DomainAccountInfo domainAccountInfo; in GetDomainAuthStatusInfo() local 381 osAccountInfo.GetDomainInfo(domainAccountInfo); in GetDomainAuthStatusInfo() 382 if (domainAccountInfo.accountName_.empty()) { in GetDomainAuthStatusInfo() 392 return InnerDomainAccountManager::GetInstance().GetAuthStatusInfo(domainAccountInfo, statusCallback); in GetDomainAuthStatusInfo() 402 DomainAccountInfo domainAccountInfo; in CheckDomainAuthAvailable() local 403 osAccountInfo.GetDomainInfo(domainAccountInfo); in CheckDomainAuthAvailable() 405 return !domainAccountInfo.accountName_.empty() && isAvailable; in CheckDomainAuthAvailable()
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/ |
H A D | getparam.cpp | 437 DomainAccountInfo domainAccountInfo; in GetParamDomainAccountInfo() local 438 return domainAccountInfo; in GetParamDomainAccountInfo() 440 DomainAccountInfo domainAccountInfo(GetStringParam(), GetStringParam()); in GetParamDomainAccountInfo() 441 return domainAccountInfo; in GetParamDomainAccountInfo()
|