Home
last modified time | relevance | path

Searched refs:authType (Results 1 – 25 of 646) sorted by relevance

12345678910>>...26

/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp65 userId, authType); in GetTemplatesByAuthType()
456 if ((authType == PIN) || !SystemParamManager::GetInstance().IsAuthTypeEnable(authType)) { in CheckAuthPermissionAndParam()
502 para.authType = authType; in Auth()
609 para.authType = authParam.authType; in AuthUser()
686 if (para.authType != PIN) { in AuthRemoteUser()
729 remoteAuthContextParam.authType = authParam.authType; in AuthRemoteUser()
756 if ((authType == PIN) || !SystemParamManager::GetInstance().IsAuthTypeEnable(authType)) { in Identify()
769 para.authType = authType; in Identify()
833 if (authType.empty() || (authType.size() > MAX_AUTH_TYPE_SIZE)) { in CheckAuthWidgetType()
844 std::set<AuthType> typeChecker(authType.begin(), authType.end()); in CheckAuthWidgetType()
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/core/src/
H A Dauth_event_listener_manager.cpp50 for (const auto &iter : authType) { in RegistUserAuthSuccessEventListener()
76 void AuthEventListenerManager::AddAuthSuccessEventListener(AuthType authType, in AddAuthSuccessEventListener() argument
80 auto iter = std::find_if(eventListenerMap_[authType].begin(), eventListenerMap_[authType].end(), in AddAuthSuccessEventListener()
82 if (iter != eventListenerMap_[authType].end()) { in AddAuthSuccessEventListener()
86 eventListenerMap_[authType].insert(listener); in AddAuthSuccessEventListener()
90 void AuthEventListenerManager::RemoveAuthSuccessEventListener(AuthType authType, in RemoveAuthSuccessEventListener() argument
94 auto iter = std::find_if(eventListenerMap_[authType].begin(), eventListenerMap_[authType].end(), in RemoveAuthSuccessEventListener()
96 if (iter == eventListenerMap_[authType].end()) { in RemoveAuthSuccessEventListener()
100 eventListenerMap_[authType].erase(listener); in RemoveAuthSuccessEventListener()
107 std::set<sptr<AuthEventListenerInterface>> listenerSet(eventListenerMap_[authType]); in GetListenerSet()
[all …]
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp328 std::vector<int32_t> authType; in FuzzRegistUserAuthSuccessEventListener() local
330 parcel.ReadInt32Vector(&authType); in FuzzRegistUserAuthSuccessEventListener()
391 std::vector<int32_t> authType; in FuzzCheckValidSolution() local
457 authType = {PIN}; in FuzzCheckSingeFaceOrFinger()
459 authType = {FACE}; in FuzzCheckSingeFaceOrFinger()
461 authType = {FINGERPRINT}; in FuzzCheckSingeFaceOrFinger()
483 authParam.authType = PIN; in FuzzAuthRemoteUser()
491 AuthType authType = PIN; in FuzzFillGetPropertyValue() local
495 authType = FACE; in FuzzFillGetPropertyValue()
503 AuthType authType = PIN; in FuzzFillGetPropertyKeys() local
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/ipc/inc/
H A Duser_auth_service.h42 int32_t GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType,
45 void GetProperty(int32_t userId, AuthType authType,
50 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
58 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
65 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
82 bool CheckSingeFaceOrFinger(const std::vector<AuthType> &authType);
84 int32_t CheckAuthWidgetType(const std::vector<AuthType> &authType);
101 bool CheckAuthPermissionAndParam(AuthType authType, AuthTrustLevel authTrustLevel,
103 bool CheckAuthTypeIsValid(std::vector<AuthType> authType);
115 std::shared_ptr<ResourceNode> GetResourseNode(AuthType authType);
[all …]
/ohos5.0/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_manager.cpp32 owner, authType, options, callback); in AddAccountImplicitly()
117 return AppAccount::GetInstance().GetOAuthToken(name, owner, authType, token); in GetOAuthToken()
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()
148 name, authType, bundleName, isVisible); in SetOAuthTokenVisibility()
155 name, authType, bundleName, isVisible); in SetAuthTokenVisibility()
162 name, authType, bundleName, isVisible); in CheckOAuthTokenVisibility()
169 name, authType, bundleName, isVisible); in CheckAuthTokenVisibility()
186 return AppAccount::GetInstance().GetOAuthList(name, authType, oauthList); in GetOAuthList()
[all …]
H A Dapp_account.cpp75 return proxy->AddAccountImplicitly(owner, authType, options, callback); in AddAccountImplicitly()
279 return proxy->GetOAuthToken(name, owner, authType, token); in GetOAuthToken()
292 return proxy->GetAuthToken(name, owner, authType, token); in GetAuthToken()
304 return proxy->SetOAuthToken(name, authType, token); in SetOAuthToken()
319 return proxy->DeleteOAuthToken(name, owner, authType, token); in DeleteOAuthToken()
333 return proxy->DeleteAuthToken(name, owner, authType, token); in DeleteAuthToken()
349 ErrCode ret = CheckTokenVisibilityParam(name, authType, bundleName); in SetAuthTokenVisibility()
364 ErrCode ret = CheckTokenVisibilityParam(name, authType, bundleName); in SetOAuthTokenVisibility()
378 ErrCode ret = CheckTokenVisibilityParam(name, authType, bundleName); in CheckAuthTokenVisibility()
436 return proxy->GetOAuthList(name, authType, oauthList); in GetOAuthList()
[all …]
/ohos5.0/drivers/peripheral/user_auth/test/unittest/co_auth/
H A Dpool_test.cpp99 info.authType = authType;
114 info1->authType = authType;
119 info2->authType = authType;
197 info1.authType = authType1;
202 info2.authType = authType1;
207 info3.authType = authType1;
210 info4.authType = authType2;
228 info1.authType = authType1;
234 info2.authType = authType1;
239 info3.authType = authType1;
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/context/src/
H A Dauth_widget_helper.cpp37 for (auto &authType : validType) { in InitWidgetContextParam() local
39 if (!GetUserAuthProfile(para.userId, authType, profile)) { in InitWidgetContextParam()
43 para.authProfileMap[authType] = profile; in InitWidgetContextParam()
44 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in InitWidgetContextParam()
46 } else if (authType == AuthType::FINGERPRINT) { in InitWidgetContextParam()
68 userId, authType); in GetUserAuthProfile()
96 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in GetUserAuthProfile()
101 attr.SetInt32Value(Attributes::ATTR_AUTH_TYPE, authType); in GetUserAuthProfile()
110 return ParseAttributes(values, authType, profile); in GetUserAuthProfile()
116 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in ParseAttributes()
[all …]
H A Dwidget_context.cpp165 widgetCallback->SetTraceAuthType(authType); in GetAuthContextCallback()
177 static_cast<int32_t>(authType))); in BuildTask()
185 para.authType = authType; in BuildTask()
262 authResultInfo_.authType = authTypeTmp; in AuthResult()
301 for (auto &authType : authTypeList) { in ExecuteAuthList() local
313 if (authType == FACE) { in ExecuteAuthList()
318 .authType = authType, in ExecuteAuthList()
412 for (auto &authType : authTypeList) { in StopAuthList() local
415 return (taskInfo.authType == authType); in StopAuthList()
428 void WidgetContext::SuccessAuth(AuthType authType) in SuccessAuth() argument
[all …]
H A Dtrace.cpp67 if (metaData.authType.has_value()) { in ProcessCredChangeEvent()
68 securityInfo.authType = metaData.authType.value(); in ProcessCredChangeEvent()
96 if (metaData.authType.has_value()) { in ProcessCredManagerEvent()
97 info.authType = metaData.authType.value(); in ProcessCredManagerEvent()
122 if (metaData.authType.has_value() && metaData.operationResult == SUCCESS) { in ProcessUserAuthEvent()
123 info.authType = metaData.authType.value(); in ProcessUserAuthEvent()
149 static_cast<AuthType>(info.authType), info.callerType, info.callerName); in ProcessUserAuthEvent()
174 if (metaData.authType.has_value()) { in ProcessUserAuthFwkEvent()
175 securityInfo.authType = metaData.authType.value(); in ProcessUserAuthFwkEvent()
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_auth_manager_second.cpp888 int32_t authType = 0; variable
896 int32_t authType = 0; variable
905 int32_t authType = 0; variable
914 int32_t authType = 0; variable
923 int32_t authType = 0; variable
1030 int32_t authType = 7; variable
1037 int32_t authType = 7; variable
1055 int32_t authType = 6; variable
1065 int32_t authType = 4; variable
1075 int32_t authType = 4; variable
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Denroll_specification_check.c29 AuthType authType; member
39 IAM_STATIC uint32_t GetMaxNumber(uint32_t authType) in GetMaxNumber() argument
42 if (g_specificationMap[i].authType == authType) { in GetMaxNumber()
61 if (tokenPlain.tokenDataPlain.authType != PIN_AUTH) { in CheckIdmOperationToken()
95 ResultCode CheckSpecification(int32_t userId, uint32_t authType) in CheckSpecification() argument
98 SetCredentialConditionAuthType(&condition, authType); in CheckSpecification()
105 uint32_t maxNumber = GetMaxNumber(authType); in CheckSpecification()
107 … LOG_ERROR("the enrolled quantity has reached the upper limit, authType is %{public}u", authType); in CheckSpecification()
H A Duser_idm_funcs.c38 scheduleParam->authType = param->authType; in SetScheduleParam()
145 ret = CheckSpecification(param.userId, param.authType); in CheckEnrollPermission()
150 if (param.authType != PIN_AUTH) { in CheckEnrollPermission()
163 if (scheduleId == NULL || param.authType != PIN_AUTH) { in CheckUpdatePermission()
172 ret = CheckSpecification(param.userId, param.authType); in CheckUpdatePermission()
190 credentialInfo->authType = schedule->authType; in GetInfoFromResult()
226 dataPlain->authType = credentialInfo->authType; in GetEnrollTokenDataPlain()
342 if (credentialInfo.authType != PIN_AUTH) { in AddCredentialFunc()
389 if (authType != DEFAULT_AUTH_TYPE) { in QueryCredentialFunc()
472 if (credentialInfo->authType != PIN_AUTH && credentialInfo->authType != DEFAULT_AUTH_TYPE) { in GetUpdateCredentialOutput()
[all …]
/ohos5.0/base/account/os_account/frameworks/appaccount/native/include/
H A Dapp_account_proxy.h30 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
57 …rrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType,
64 const std::string &name, const std::string &authType, const std::string &token) override;
65 …de DeleteOAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
67 …ode DeleteAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
81 … const std::string &name, const std::string &authType, std::set<std::string> &oauthList) override;
83 … const std::string &name, const std::string &authType, std::set<std::string> &oauthList) override;
105 const std::string &name, const std::string &authType, MessageParcel &data);
107 …const std::string &name, const std::string &owner, const std::string &authType, MessageParcel &dat…
109 …const std::string &owner, const std::string &authType, const std::string &token, MessageParcel &da…
[all …]
H A Dapp_account.h37 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…
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…
84 const std::string &name, const std::string &authType, std::set<std::string> &oauthList);
86 const std::string &name, const std::string &authType, std::set<std::string> &oauthList);
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/database/src/
H A Didm_database.c159 if (nodeInfo != NULL && nodeInfo->authType == authType) { in GetEnrolledInfoAuthType()
395 if (nodeData != NULL && nodeData->authType == authType) { in UpdateEnrolledId()
411 enrolledInfo->authType = authType; in UpdateEnrolledId()
432 return authType; in GetRealAuthTypeForEnrolledId()
593 if (enrolledInfo->authType == authType) { in MatchEnrolledInfoByType()
770 if (nodeData != NULL && nodeData->authType == authType) { in QueryCredentialByAuthType()
792 limit->authType != credentialInfo->authType) { in IsCredMatch()
988 condition->authType = authType; in SetCredentialConditionAuthType()
1163 userInfos[*userInfocount].enrolledInfo[i].authType = enrolledInfoHal[i].authType; in GetAllExtUserInfo()
1197 if (nodeInfo != NULL && nodeInfo->authType == authType) { in GetEnrolledState()
[all …]
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/
H A Dhks_useridm_api_wrap.cpp40 *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()
113 enum HksUserAuthType authType; in OnSecUserInfo() local
114 ret = ConvertToHksAuthType(info.enrolledInfo[i].authType, &authType); in OnSecUserInfo()
117 (**outSecInfo).enrolledInfo[i].authType = authType; in OnSecUserInfo()
194 enum USER_IAM::AuthType authType; in HksUserIdmGetAuthInfoNum() local
196 int32_t ret = ConvertFromHksAuthType(hksAuthType, &authType); in HksUserIdmGetAuthInfoNum()
[all …]
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Duser_auth_client_impl.cpp97 apiVersion, authType, authTrustLevel); in GetNorthAvailableStatus()
103 return proxy->GetAvailableStatus(apiVersion, authType, authTrustLevel); in GetNorthAvailableStatus()
109 userId, authType, authTrustLevel); in GetAvailableStatus()
143 proxy->GetProperty(userId, request.authType, request.keys, wrapper); in GetProperty()
202 proxy->SetProperty(userId, request.authType, attr, wrapper); in SetPropertyInner()
261 .authType = authParam.authType, in BeginAuthentication()
301 return proxy->Auth(apiVersion, challenge, authType, atl, wrapper); in BeginNorthAuthentication()
319 IAM_LOGI("start, authType:%{public}d", authType); in BeginIdentification()
340 return proxy->Identify(challenge, authType, wrapper); in BeginIdentification()
540 int32_t ret = proxy->GetEnrolledState(apiVersion, authType, enrolledState); in GetEnrolledState()
[all …]
/ohos5.0/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Dauth_level_test.cpp27 extern ResultCode GetExecutorAslAndAcl(uint32_t authType, uint32_t *asl, uint32_t *acl);
87 constexpr uint32_t authType = 1; variable
90 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_UNKNOWN);
98 executorInfo.authType = 1;
101 constexpr uint32_t authType = 1; variable
104 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_SUCCESS);
112 executorInfo.authType = 1;
116 constexpr uint32_t authType = 1; variable
119 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_SUCCESS);
/ohos5.0/base/account/os_account/interfaces/innerkits/appaccount/native/include/
H A Dapp_account_manager.h68 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);
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,
343 static ErrCode CheckAuthTokenVisibility(const std::string &name, const std::string &authType,
374 static ErrCode GetOAuthList(const std::string &name, const std::string &authType,
[all …]
/ohos5.0/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp71 info.authType = authType; in DoOnceExecutorRegister()
99 enrollParam.authType = authType; in DoOnceEnroll()
126 authParam.authType = authType; in DoOnceAuth()
203 info.authType = AuthType::FACE;
226 info.authType = AuthType::FACE;
350 info.authType = AuthType::PIN;
389 info.authType = AuthType::PIN;
490 info.authType = AuthType::PIN;
727 authParam.authType = authType;
1210 enrollParam.authType = authType;
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/src/account_iam/
H A Daccount_iam_mgr_stub.cpp269 int32_t authType; in AddOrUpdateCredential() local
289 credParams.authType = static_cast<AuthType>(authType); in AddOrUpdateCredential()
386 int32_t authType; in ProcGetCredentialInfo() local
439 int32_t authType; in ReadAuthParam() local
444 authParam.authType = static_cast<AuthType>(authType); in ReadAuthParam()
566 int32_t authType; in ProcGetAvailableStatus() local
599 int32_t authType; in ProcGetProperty() local
614 request.authType = static_cast<AuthType>(authType); in ProcGetProperty()
657 int32_t authType; in ProcSetProperty() local
672 .authType = static_cast<AuthType>(authType), in ProcSetProperty()
[all …]
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dcredential_info_test.cpp46 .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),
159 .authType = static_cast<HdiAuthType>(4),
/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_manager_service.cpp71 request.authType = authType; in AddAccountImplicitly()
297 request.authType = authType; in Authenticate()
317 request.authType = authType; in GetOAuthToken()
331 request.authType = authType; in GetAuthToken()
345 request.authType = authType; in SetOAuthToken()
360 request.authType = authType; in DeleteOAuthToken()
375 request.authType = authType; in DeleteAuthToken()
389 request.authType = authType; in GetTokenVisibilityParam()
398 ErrCode ret = GetTokenVisibilityParam(name, authType, bundleName, request); in SetOAuthTokenVisibility()
484 request.authType = authType; in GetOAuthList()
[all …]
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
H A Duser_auth_interface.h36 virtual int32_t GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType,
39 …virtual int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrust…
41 virtual void GetProperty(int32_t userId, AuthType authType,
47 virtual void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
53 …virtual uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
59 virtual uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
70 …virtual int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledSta…
72 virtual int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,

12345678910>>...26