/base/useriam/user_auth_framework/services/core/src/ |
D | auth_widget_helper.cpp | 32 for (auto &authType : authParam.authType) { in InitWidgetContextParam() local 34 if (!GetUserAuthProfile(userId, authType, profile, para.callingUid)) { in InitWidgetContextParam() 38 para.authProfileMap[authType] = profile; in InitWidgetContextParam() 39 if (authType == AuthType::PIN) { in InitWidgetContextParam() 41 } else if (authType == AuthType::FINGERPRINT) { in InitWidgetContextParam() 46 para.authTypeList = authParam.authType; in InitWidgetContextParam() 55 bool AuthWidgetHelper::GetUserAuthProfile(int32_t userId, const AuthType &authType, in GetUserAuthProfile() argument 59 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetUserAuthProfile() 61 IAM_LOGE("user %{public}d has no credential type %{public}d", userId, authType); in GetUserAuthProfile() 81 if (authType == AuthType::PIN) { in GetUserAuthProfile() [all …]
|
D | widget_schedule_node_impl.cpp | 105 for (auto authType : authTypeList) { in StartAuthList() local 106 startAuthTypeList_.emplace_back(authType); in StartAuthList() 107 IAM_LOGI("Command(type:%{public}d) on result start.", authType); in StartAuthList() 119 bool WidgetScheduleNodeImpl::SuccessAuth(AuthType authType) in SuccessAuth() argument 122 successAuthType_ = authType; in SuccessAuth() 161 for (auto authType : startAuthTypeList_) { in OnStartAuth() local 162 if (runningAuthTypeSet_.find(authType) == runningAuthTypeSet_.end()) { in OnStartAuth() 163 startAuthTypeSet.emplace(authType); in OnStartAuth() 173 for (auto authType : stopAuthTypeList_) { in OnStopAuthList() local 174 runningAuthTypeSet_.erase(authType); in OnStopAuthList()
|
/base/useriam/user_auth_framework/services/ipc/src/ |
D | user_auth_service.cpp | 50 void GetTemplatesByAuthType(int32_t userId, AuthType authType, std::vector<uint64_t> &templateIds) in GetTemplatesByAuthType() argument 53 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetTemplatesByAuthType() 55 IAM_LOGE("user %{public}d has no credential type %{public}d", userId, authType); in GetTemplatesByAuthType() 81 void GetResourceNodeByType(AuthType authType, std::vector<std::weak_ptr<ResourceNode>> &authTypeNod… in GetResourceNodeByType() argument 85 [&authTypeNodes, authType](const std::weak_ptr<ResourceNode> &weakNode) { in GetResourceNodeByType() 90 if (node->GetAuthType() == authType) { in GetResourceNodeByType() 118 int32_t UserAuthService::GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel a… in GetAvailableStatus() argument 121 ResultCode checkRet = CheckServicePermission(authType); in GetAvailableStatus() 142 hdi->GetAuthTrustLevel(userId, static_cast<HdiAuthType>(authType), supportedAtl); in GetAvailableStatus() 155 void UserAuthService::GetProperty(int32_t userId, AuthType authType, in GetProperty() argument [all …]
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_manager.cpp | 28 …Code AppAccountManager::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument 32 owner, authType, options, callback); in AddAccountImplicitly() 109 …const std::string &authType, const AAFwk::Want &options, const sptr<IAppAccountAuthenticatorCallba… in Authenticate() argument 111 return AppAccount::GetInstance().Authenticate(name, owner, authType, options, callback); in Authenticate() 115 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument 117 return AppAccount::GetInstance().GetOAuthToken(name, owner, authType, token); in GetOAuthToken() 121 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetAuthToken() argument 123 return AppAccount::GetInstance().GetAuthToken(name, owner, authType, token); in GetAuthToken() 127 const std::string &name, const std::string &authType, const std::string &token) in SetOAuthToken() argument 129 return AppAccount::GetInstance().SetOAuthToken(name, authType, token); in SetOAuthToken() [all …]
|
D | app_account.cpp | 72 ErrCode AppAccount::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument 76 RETURN_IF_STRING_IS_OVERSIZE(authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is oversize"); in AddAccountImplicitly() 80 return appAccountProxy_->AddAccountImplicitly(owner, authType, options, callback); in AddAccountImplicitly() 101 …RETURN_IF_STRING_IS_OVERSIZE(options.authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is empty o… in CreateAccountImplicitly() 216 …count::Authenticate(const std::string &name, const std::string &owner, const std::string &authType, in Authenticate() argument 221 RETURN_IF_STRING_IS_OVERSIZE(authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is oversize"); in Authenticate() 225 return appAccountProxy_->Authenticate(name, owner, authType, options, callback); in Authenticate() 229 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument 234 RETURN_IF_STRING_IS_OVERSIZE(authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is oversize"); in GetOAuthToken() 236 return appAccountProxy_->GetOAuthToken(name, owner, authType, token); in GetOAuthToken() [all …]
|
/base/useriam/user_auth_framework/services/context/src/ |
D | trace.cpp | 53 int32_t authType = 0; in ProcessCredChangeEvent() local 59 if (metaData.authType.has_value()) { in ProcessCredChangeEvent() 60 authType = metaData.authType.value(); in ProcessCredChangeEvent() 65 ReportBehaviorCredChange(userId, authType, operationType, optResult); in ProcessCredChangeEvent() 66 ReportSecurityCredChange(userId, authType, operationType, optResult); in ProcessCredChangeEvent() 74 (metaData.authType.has_value() || metaData.authWidgetType.has_value()); in ProcessUserAuthEvent() 82 if (metaData.authType.has_value()) { in ProcessUserAuthEvent() 83 info.authType = metaData.authType.value(); in ProcessUserAuthEvent() 108 bool checkRet = metaData.operationType == TRACE_AUTH_USER && metaData.authType.has_value() && in ProcessPinAuthEvent() 109 metaData.authType == PIN; in ProcessPinAuthEvent()
|
D | widget_context.cpp | 119 std::shared_ptr<ContextCallback> WidgetContext::GetAuthContextCallback(AuthType authType, in GetAuthContextCallback() argument 140 AuthType authType, AuthTrustLevel authTrustLevel) in BuildTask() argument 150 static_cast<int32_t>(authType))); in BuildTask() 151 auto contextCallback = GetAuthContextCallback(authType, authTrustLevel, iamCallback); in BuildTask() 160 para.authType = authType; in BuildTask() 219 AuthType authType = static_cast<AuthType>(at); in AuthResult() local 220 WidgetClient::Instance().ReportWidgetResult(resultCode, authType, freezingTime, remainTimes); in AuthResult() 229 authResultInfo_.authType = authType; in AuthResult() 230 schedule_->SuccessAuth(authType); in AuthResult() 234 schedule_->StopAuthList({authType}); in AuthResult() [all …]
|
/base/useriam/user_auth_framework/services/ipc/inc/ |
D | user_auth_service.h | 39 …int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) o… 40 void GetProperty(int32_t userId, AuthType authType, 43 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes, 45 uint64_t AuthUser(int32_t userId, const std::vector<uint8_t> &challenge, AuthType authType, 47 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, 51 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType, 63 …r<ContextCallback> GetAuthContextCallback(const std::vector<uint8_t> &challenge, AuthType authType, 67 ResultCode CheckNorthPermission(AuthType authType); 68 ResultCode CheckServicePermission(AuthType authType);
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/ |
D | hks_useridm_api_wrap.cpp | 36 …int32_t ConvertFromHksAuthType(enum HksUserAuthType hksAuthType, enum USER_IAM::AuthType *authType) in ConvertFromHksAuthType() argument 40 *authType = USER_IAM::AuthType::FACE; in ConvertFromHksAuthType() 43 *authType = USER_IAM::AuthType::PIN; in ConvertFromHksAuthType() 46 *authType = USER_IAM::AuthType::FINGERPRINT; in ConvertFromHksAuthType() 55 static int32_t ConvertToHksAuthType(enum USER_IAM::AuthType authType, enum HksUserAuthType *hksAuth… in ConvertToHksAuthType() argument 57 switch (authType) { in ConvertToHksAuthType() 109 enum HksUserAuthType authType; in OnSecUserInfo() local 110 ret = ConvertToHksAuthType(info.enrolledInfo[i].authType, &authType); in OnSecUserInfo() 113 (**outSecInfo).enrolledInfo[i].authType = authType; in OnSecUserInfo() 188 enum USER_IAM::AuthType authType; in HksUserIdmGetAuthInfoNum() local [all …]
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/ |
D | hks_useridm_api_mock.cpp | 37 static int32_t ConvertToHksAuthType(enum USER_IAM::AuthType authType, enum HksUserAuthType *hksAuth… in ConvertToHksAuthType() argument 39 switch (authType) { in ConvertToHksAuthType() 59 .authType = HKS_USER_AUTH_TYPE_PIN, 62 .authType = HKS_USER_AUTH_TYPE_FINGERPRINT, 65 .authType = HKS_USER_AUTH_TYPE_FACE, 70 .authType = HKS_USER_AUTH_TYPE_PIN,
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | credential_info_test.cpp | 46 .authType = static_cast<HdiAuthType>(4), 63 .authType = static_cast<HdiAuthType>(4), 79 .authType = static_cast<HdiAuthType>(4), 95 .authType = static_cast<HdiAuthType>(4), 111 .authType = static_cast<HdiAuthType>(4), 117 EXPECT_EQ(static_cast<uint32_t>(ret), static_cast<uint32_t>(info.authType)); 127 .authType = static_cast<HdiAuthType>(4), 143 .authType = static_cast<HdiAuthType>(4),
|
D | widget_context_callback_impl_test.cpp | 64 int32_t authType = 0; variable 66 …on::MakeShared<WidgetContextCallbackImpl>(std::shared_ptr<WidgetContext>(widgetContext), authType); 77 int32_t authType = 0; variable 78 auto contextCallback = Common::MakeShared<WidgetContextCallbackImpl>(widgetContext, authType); 91 int32_t authType = 0; variable 93 …on::MakeShared<WidgetContextCallbackImpl>(std::shared_ptr<WidgetContext>(widgetContext), authType);
|
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/ |
D | user_auth_interface.h | 35 …virtual int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrust… 37 virtual void GetProperty(int32_t userId, AuthType authType, 40 virtual void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes, 43 …virtual uint64_t AuthUser(int32_t userId, const std::vector<uint8_t> &challenge, AuthType authType, 46 …virtual uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, 52 virtual uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
D | mock_user_auth_service.h | 27 …MOCK_METHOD3(GetAvailableStatus, int32_t(int32_t apiVersion, AuthType authType, AuthTrustLevel aut… 30 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys, 33 MOCK_METHOD4(SetProperty, void(int32_t userId, AuthType authType, const Attributes &attributes, 37 uint64_t(int32_t userId, const std::vector<uint8_t> &challenge, AuthType authType, 41 uint64_t(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, 48 …uint64_t(const std::vector<uint8_t> &challenge, AuthType authType, sptr<UserAuthCallbackInterface>…
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
D | account_iam_mgr_stub.cpp | 212 …e AccountIAMMgrStub::ReadUserIdAndAuthType(MessageParcel &data, int32_t &userId, int32_t &authType) in ReadUserIdAndAuthType() argument 218 if (!data.ReadInt32(authType)) { in ReadUserIdAndAuthType() 231 int32_t authType; in AddOrUpdateCredential() local 232 ErrCode ret = ReadUserIdAndAuthType(data, userId, authType); in AddOrUpdateCredential() 251 credParams.authType = static_cast<AuthType>(authType); in AddOrUpdateCredential() 348 int32_t authType; in ProcGetCredentialInfo() local 349 ErrCode ret = ReadUserIdAndAuthType(data, userId, authType); in ProcGetCredentialInfo() 358 int result = GetCredentialInfo(userId, static_cast<AuthType>(authType), callback); in ProcGetCredentialInfo() 381 int32_t authType; in ProcAuthUser() local 382 if (!data.ReadInt32(authType)) { in ProcAuthUser() [all …]
|
/base/account/os_account/frameworks/appaccount/native/include/ |
D | app_account_proxy.h | 30 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 58 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType, 61 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 63 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 65 const std::string &name, const std::string &authType, const std::string &token) override; 66 …de DeleteOAuthToken(const std::string &name, const std::string &owner, const std::string &authType, 68 …ode DeleteAuthToken(const std::string &name, const std::string &owner, const std::string &authType, 71 …const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisibl… 73 …const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisibl… 75 …const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisib… [all …]
|
D | app_account.h | 37 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 61 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType, 64 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 66 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 67 …ErrCode SetOAuthToken(const std::string &name, const std::string &authType, const std::string &tok… 69 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 71 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 73 …const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisibl… 75 …const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisibl… 77 …const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisib… [all …]
|
D | iapp_account.h | 34 virtual ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 61 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType, 64 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 66 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 68 const std::string &name, const std::string &authType, const std::string &token) = 0; 70 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 72 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 73 virtual ErrCode SetOAuthTokenVisibility(const std::string &name, const std::string &authType, 75 virtual ErrCode SetAuthTokenVisibility(const std::string &name, const std::string &authType, 77 virtual ErrCode CheckOAuthTokenVisibility(const std::string &name, const std::string &authType, [all …]
|
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/ |
D | user_auth_proxy.h | 31 …int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) o… 32 void GetProperty(int32_t userId, AuthType authType, 35 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes, 37 uint64_t AuthUser(int32_t userId, const std::vector<uint8_t> &challenge, AuthType authType, 39 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, 43 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType, 53 … AuthType authType, AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback);
|
/base/account/os_account/interfaces/innerkits/appaccount/native/include/ |
D | app_account_manager.h | 68 static ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 231 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType, 242 …rCode GetOAuthToken(const std::string &name, const std::string &owner, const std::string &authType, 253 …rrCode GetAuthToken(const std::string &name, const std::string &owner, const std::string &authType, 266 const std::string &name, const std::string &authType, const std::string &token); 279 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 292 …const std::string &name, const std::string &owner, const std::string &authType, const std::string … 304 static ErrCode SetOAuthTokenVisibility(const std::string &name, const std::string &authType, 317 static ErrCode SetAuthTokenVisibility(const std::string &name, const std::string &authType, 330 static ErrCode CheckOAuthTokenVisibility(const std::string &name, const std::string &authType, [all …]
|
/base/account/os_account/interfaces/kits/napi/account_iam/src/ |
D | napi_account_iam_inputer_manager.cpp | 51 napi_env env, napi_callback_info info, int32_t &authType, napi_ref &callback) in ParseContextForRegisterInputer() argument 62 if (!GetIntProperty(env, argv[PARAM_ZERO], authType)) { in ParseContextForRegisterInputer() 89 int32_t authType = -1; in RegisterInputer() local 91 if (!ParseContextForRegisterInputer(env, info, authType, callback)) { in RegisterInputer() 95 ErrCode errCode = AccountIAMClient::GetInstance().RegisterInputer(authType, inputer); in RegisterInputer() 114 int32_t authType = -1; in UnregisterInputer() local 115 if (!GetIntProperty(env, argv[PARAM_ZERO], authType)) { in UnregisterInputer() 121 ErrCode errCode = AccountIAMClient::GetInstance().UnregisterInputer(authType); in UnregisterInputer()
|
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
D | user_auth_stub.cpp | 79 int32_t authType; in GetAvailableStatusStub() local 83 if (!data.ReadInt32(authType)) { in GetAvailableStatusStub() 97 static_cast<AuthType>(authType), static_cast<AuthTrustLevel>(authTrustLevel)); in GetAvailableStatusStub() 111 int32_t authType; in GetPropertyStub() local 118 if (!data.ReadInt32(authType)) { in GetPropertyStub() 151 GetProperty(userId, static_cast<AuthType>(authType), attrKeys, callback); in GetPropertyStub() 161 int32_t authType; in SetPropertyStub() local 168 if (!data.ReadInt32(authType)) { in SetPropertyStub() 189 SetProperty(userId, static_cast<AuthType>(authType), attributes, callback); in SetPropertyStub() 199 int32_t authType; in AuthStub() local [all …]
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
D | mock_app_account_stub.h | 28 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 54 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType, 57 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 59 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token… 61 const std::string &name, const std::string &authType, const std::string &token) override; 63 const std::string &authType, const std::string &token) override; 65 const std::string &authType, const std::string &token) override; 66 ErrCode SetOAuthTokenVisibility(const std::string &name, const std::string &authType, 68 ErrCode SetAuthTokenVisibility(const std::string &name, const std::string &authType, 70 ErrCode CheckOAuthTokenVisibility(const std::string &name, const std::string &authType, [all …]
|
/base/useriam/user_auth_framework/interfaces/inner_api/ |
D | user_idm_client_defines.h | 40 AuthType authType {0}; 54 AuthType authType {0}; 74 AuthType authType {0};
|
/base/useriam/user_auth_framework/frameworks/native/common/dfx/src/ |
D | hisysevent_adapter.cpp | 74 void ReportBehaviorCredChange(int32_t userId, int32_t authType, uint32_t operationType, uint32_t op… in ReportBehaviorCredChange() argument 79 STR_AUTH_TYPE, authType, in ReportBehaviorCredChange() 85 ret, userId, authType, operationType, optResult); in ReportBehaviorCredChange() 89 void ReportSecurityCredChange(int32_t userId, int32_t authType, uint32_t operationType, uint32_t op… in ReportSecurityCredChange() argument 94 STR_AUTH_TYPE, authType, in ReportSecurityCredChange() 100 ret, userId, authType, operationType, optResult); in ReportSecurityCredChange() 109 STR_AUTH_TYPE, info.authType, in ReportUserAuth() 119 ret, info.callingUid, info.authType, info.atl, info.authResult, in ReportUserAuth()
|