Home
last modified time | relevance | path

Searched refs:AuthType (Results 1 – 25 of 199) sorted by relevance

12345678

/base/useriam/user_auth_framework/test/unittest/services/src/
Dwidget_schedule_node_impl_test.cpp79 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
90 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
102 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
106 EXPECT_TRUE(schedule->SuccessAuth(AuthType::PIN));
Dwidget_client_test.cpp179 std::vector<AuthType> authTypeList;
193 std::vector<AuthType> authTypeList;
194 authTypeList.emplace_back(AuthType::PIN);
209 std::vector<AuthType> authTypeList;
210 authTypeList.emplace_back(AuthType::PIN);
225 std::vector<AuthType> authTypeList;
226 authTypeList.emplace_back(AuthType::FACE);
241 std::vector<AuthType> authTypeList;
242 authTypeList.emplace_back(AuthType::PIN);
257 std::vector<AuthType> authTypeList;
[all …]
Dwidget_context_test.cpp197 para.authProfileMap[AuthType::FINGERPRINT] = authProfile;
226 std::vector<AuthType> authTypeList;
236 std::vector<AuthType> authTypeList = {ALL, PIN, FACE};
249 std::set<AuthType> authTypeList;
254 std::vector<AuthType> testTypeList = {ALL, PIN, FACE};
264 AuthType authType = ALL;
274 AuthType authType = ALL;
288 std::set<AuthType> authTypeList;
291 AuthType authType = ALL;
301 std::set<AuthType> authTypeList;
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
Dhks_core_useriam_wrap.cpp30 using AuthType = OHOS::HDI::UserAuth::V1_0::AuthType; typedef
32 static int32_t ConvertToHksAuthType(AuthType authType, enum HksUserAuthType *hksAuthType) in ConvertToHksAuthType()
35 case AuthType::FACE: in ConvertToHksAuthType()
38 case AuthType::PIN: in ConvertToHksAuthType()
41 case AuthType::FINGERPRINT: in ConvertToHksAuthType()
57 return ConvertToHksAuthType(static_cast<AuthType>(userIamValue), in HksCoreConvertUserIamTypeToHksType()
/base/useriam/user_auth_framework/services/core/src/
Dwidget_schedule_node_impl.h42 bool StartAuthList(const std::vector<AuthType> &authTypeList) override;
43 bool StopAuthList(const std::vector<AuthType> &authTypeList) override;
44 bool SuccessAuth(AuthType authType) override;
66 AuthType successAuthType_ {0};
67 std::vector<AuthType> startAuthTypeList_;
68 std::vector<AuthType> stopAuthTypeList_;
69 std::set<AuthType> runningAuthTypeSet_;
Dauth_widget_helper.cpp39 if (authType == AuthType::PIN) { in InitWidgetContextParam()
41 } else if (authType == AuthType::FINGERPRINT) { in InitWidgetContextParam()
55 bool AuthWidgetHelper::GetUserAuthProfile(int32_t userId, const AuthType &authType, in GetUserAuthProfile()
81 if (authType == AuthType::PIN) { in GetUserAuthProfile()
99 bool AuthWidgetHelper::ParseAttributes(const Attributes &values, const AuthType &authType, in ParseAttributes()
102 if (authType == AuthType::PIN) { in ParseAttributes()
124 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl) in CheckValidSolution()
/base/useriam/user_auth_framework/services/ipc/inc/
Duser_auth_service.h39 …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/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Duser_auth_interface.h35 …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/
Dmock_user_auth_service.h27 …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>…
Dmock_widget_schedule_node_callback.h31 MOCK_METHOD1(ExecuteAuthList, void(const std::set<AuthType> &authTypeList));
34 MOCK_METHOD1(StopAuthList, void(const std::vector<AuthType> &authTypeList));
35 MOCK_METHOD1(SuccessAuth, void(AuthType authType));
Dmock_widget_schedule_node.h29 MOCK_METHOD1(StartAuthList, bool(const std::vector<AuthType> &));
30 MOCK_METHOD1(StopAuthList, bool(const std::vector<AuthType> &));
31 MOCK_METHOD1(SuccessAuth, bool(AuthType));
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
Duser_auth_proxy.h31 …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,
53AuthType authType, AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback);
/base/useriam/user_auth_framework/services/context/inc/
Dwidget_context.h60 void ExecuteAuthList(const std::set<AuthType> &authTypeList) override;
63 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
64 void SuccessAuth(AuthType authType) override;
75 AuthType authType, AuthTrustLevel authTrustLevel);
81 …std::shared_ptr<ContextCallback> GetAuthContextCallback(AuthType authType, AuthTrustLevel authTrus…
88 AuthType authType {0};
94 AuthType authType { 0 };
Dcontext_factory.h35 AuthType authType {ALL};
54 std::vector<AuthType> authTypeList {};
57 std::map<AuthType, AuthProfile> authProfileMap {};
61 AuthType authType {ALL};
68 AuthType authType {ALL};
Dwidget_client.h41 void SetAuthTypeList(const std::vector<AuthType> &authTypeList);
48 void ReportWidgetResult(int32_t result, AuthType authType,
60 bool GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
67 std::vector<AuthType> authTypeList_ {};
/base/useriam/user_auth_framework/services/core/inc/
Dwidget_schedule_node_callback.h35 virtual void ExecuteAuthList(const std::set<AuthType> &authTypeList) = 0;
38 virtual void StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
39 virtual void SuccessAuth(AuthType authType) = 0;
Dauth_widget_helper.h30 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl);
33 static bool GetUserAuthProfile(int32_t userId, const AuthType &authType,
35 static bool ParseAttributes(const Attributes &values, const AuthType &authType,
Dwidget_schedule_node.h55 virtual bool StartAuthList(const std::vector<AuthType> &authTypeList) = 0;
56 virtual bool StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
57 virtual bool SuccessAuth(AuthType authType) = 0;
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/
Dhks_useridm_api_mock.cpp37 static int32_t ConvertToHksAuthType(enum USER_IAM::AuthType authType, enum HksUserAuthType *hksAuth… in ConvertToHksAuthType()
40 case USER_IAM::AuthType::FACE: in ConvertToHksAuthType()
43 case USER_IAM::AuthType::FINGERPRINT: in ConvertToHksAuthType()
46 case USER_IAM::AuthType::PIN: in ConvertToHksAuthType()
104 …return ConvertToHksAuthType((enum USER_IAM::AuthType)userIamValue, (enum HksUserAuthType *)hksValu… in HksConvertUserIamTypeToHksType()
/base/useriam/user_auth_framework/interfaces/inner_api/
Duser_idm_client_defines.h40 AuthType authType {0};
54 AuthType authType {0};
74 AuthType authType {0};
/base/useriam/user_auth_framework/services/context/src/
Dwidget_client.cpp81 std::vector<AuthType> authTypeList = {}; in OnNotice()
89 if (authTypeList.size() == 1 && authTypeList[0] == AuthType::ALL) { in OnNotice()
112 void WidgetClient::ReportWidgetResult(int32_t result, AuthType authType, in ReportWidgetResult()
124 if (authType == AuthType::FINGERPRINT && !sensorInfo_.empty()) { in ReportWidgetResult()
153 void WidgetClient::SetAuthTypeList(const std::vector<AuthType> &authTypeList) in SetAuthTypeList()
223 bool WidgetClient::GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) in GetAuthTypeList()
229 std::vector<AuthType> tempList = notice.AuthTypeList(); in GetAuthTypeList()
234 if (tempList.size() == 1 && tempList[0] == AuthType::ALL) { in GetAuthTypeList()
239 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList()
251 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList()
Dwidget_json.cpp58 AuthType Str2AuthType(const std::string &strAuthType) in Str2AuthType()
60 std::map<std::string, AuthType> authTypeMap; in Str2AuthType()
61 authTypeMap.emplace(std::make_pair(AUTH_TYPE_ALL, AuthType::ALL)); in Str2AuthType()
62 authTypeMap.emplace(std::make_pair(AUTH_TYPE_PIN, AuthType::PIN)); in Str2AuthType()
63 authTypeMap.emplace(std::make_pair(AUTH_TYPE_FACE, AuthType::FACE)); in Str2AuthType()
64 authTypeMap.emplace(std::make_pair(AUTH_TYPE_FINGER_PRINT, AuthType::FINGERPRINT)); in Str2AuthType()
65 auto result = AuthType::ALL; in Str2AuthType()
72 std::string AuthType2Str(const AuthType &authType) in AuthType2Str()
75 authTypeMap.emplace(std::make_pair(AuthType::ALL, AUTH_TYPE_ALL)); in AuthType2Str()
76 authTypeMap.emplace(std::make_pair(AuthType::PIN, AUTH_TYPE_PIN)); in AuthType2Str()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/
Dhks_useridm_api_wrap.cpp36 static int32_t ConvertFromHksAuthType(enum HksUserAuthType hksAuthType, enum USER_IAM::AuthType *au… in ConvertFromHksAuthType()
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()
58 case USER_IAM::AuthType::FACE: in ConvertToHksAuthType()
61 case USER_IAM::AuthType::PIN: in ConvertToHksAuthType()
64 case USER_IAM::AuthType::FINGERPRINT: in ConvertToHksAuthType()
188 enum USER_IAM::AuthType authType; in HksUserIdmGetAuthInfoNum()
221 return ConvertToHksAuthType(static_cast<enum USER_IAM::AuthType>(userIamValue), in HksConvertUserIamTypeToHksType()
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
Duser_auth_service_fuzzer.cpp126 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetAvailableStatus()
137 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetProperty()
157 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzSetProperty()
176 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzAuth()
192 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzAuthUser()
207 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzIdentify()
242 authParam.authType.push_back(static_cast<AuthType>(at)); in FuzzAuthWidget()
/base/useriam/user_auth_framework/frameworks/native/client/inc/
Duser_auth_client_impl.h33 int32_t GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel);
34 … int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel);
39 …uint64_t BeginAuthentication(int32_t userId, const std::vector<uint8_t> &challenge, AuthType authT…
41 …inNorthAuthentication(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
44 uint64_t BeginIdentification(const std::vector<uint8_t> &challenge, AuthType authType,

12345678