Home
last modified time | relevance | path

Searched refs:AuthType (Results 1 - 25 of 238) sorted by relevance

12345678910

/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
H A Dhks_core_useriam_wrap.cpp30 using AuthType = OHOS::HDI::UserAuth::V2_0::AuthType;
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/test/unittest/services/src/
H A Dwidget_schedule_node_impl_test.cpp84 std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FINGERPRINT}; in HWTEST_F()
97 std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType in HWTEST_F()
[all...]
H A Dwidget_client_test.cpp180 std::vector<AuthType> authTypeList; in HWTEST_F()
194 std::vector<AuthType> authTypeList; in HWTEST_F()
195 authTypeList.emplace_back(AuthType::PIN); in HWTEST_F()
210 std::vector<AuthType> authTypeList; in HWTEST_F()
211 authTypeList.emplace_back(AuthType::PIN); in HWTEST_F()
226 std::vector<AuthType> authTypeList; in HWTEST_F()
227 authTypeList.emplace_back(AuthType::FACE); in HWTEST_F()
242 std::vector<AuthType> authTypeList; in HWTEST_F()
243 authTypeList.emplace_back(AuthType::PIN); in HWTEST_F()
258 std::vector<AuthType> authTypeLis in HWTEST_F()
[all...]
/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,
44 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) override;
45 void GetProperty(int32_t userId, AuthType authType,
48 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
52 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
56 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
62 int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) override;
63 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
75 const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel,
80 bool CheckSingeFaceOrFinger(const std::vector<AuthType>
[all...]
/base/useriam/user_auth_framework/services/context/inc/
H A Dauth_widget_helper.h28 static bool InitWidgetContextParam(const AuthParamInner &authParam, std::vector<AuthType> &validType,
31 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl, std::vector<AuthType> &validTypeList);
34 static bool GetUserAuthProfile(int32_t userId, const AuthType &authType,
40 static bool ParseAttributes(const Attributes &values, const AuthType &authType,
H A Dwidget_client.h40 void SetAuthTypeList(const std::vector<AuthType> &authTypeList);
47 void ReportWidgetResult(int32_t result, AuthType authType,
49 void ReportWidgetTip(int32_t tipType, AuthType authType, std::vector<uint8_t> tipInfo);
64 bool GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
66 void ProcessNotice(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
72 std::vector<AuthType> authTypeList_ {};
H A Dwidget_context.h68 void ExecuteAuthList(const std::set<AuthType> &authTypeList, bool endAfterFirstFail,
73 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
74 void SuccessAuth(AuthType authType) override;
76 AuthType &rotateAuthType) override;
92 AuthType rotateAuthType {0};
96 AuthType authType, AuthTrustLevel authTrustLevel, bool endAfterFirstFail, AuthIntent authIntent);
102 std::shared_ptr<ContextCallback> GetAuthContextCallback(AuthType authType, AuthTrustLevel authTrustLevel,
112 AuthType authType {0};
118 AuthType authType {0};
/base/useriam/user_auth_framework/services/core/src/
H A Dwidget_schedule_node_impl.h42 bool StartAuthList(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail,
44 bool StopAuthList(const std::vector<AuthType> &authTypeList) override;
45 bool SuccessAuth(AuthType authType) override;
49 AuthType &rotateAuthType) override;
73 AuthType successAuthType_ {0};
74 std::vector<AuthType> startAuthTypeList_;
76 std::vector<AuthType> stopAuthTypeList_;
77 std::set<AuthType> runningAuthTypeSet_;
81 AuthType rotateAuthType_ {0};
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
H A Duser_auth_proxy.h31 int32_t GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType,
33 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) override;
34 void GetProperty(int32_t userId, AuthType authType,
37 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
41 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
45 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
51 int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) override;
52 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
69 int32_t GetAvailableStatusInner(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel,
/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_widget_schedule_node_callback.h31 MOCK_METHOD3(ExecuteAuthList, void(const std::set<AuthType> &authTypeList, bool endAfterFirstFail,
36 MOCK_METHOD1(StopAuthList, void(const std::vector<AuthType> &authTypeList));
37 MOCK_METHOD1(SuccessAuth, void(AuthType authType));
39 AuthType &rotateAuthType));
H A Dmock_widget_schedule_node.h29 MOCK_METHOD3(StartAuthList, bool(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail,
31 MOCK_METHOD1(StopAuthList, bool(const std::vector<AuthType> &));
32 MOCK_METHOD1(SuccessAuth, bool(AuthType));
37 AuthType &rotateAuthType));
H A Dmock_user_auth_service.h27 MOCK_METHOD3(GetEnrolledState, int32_t(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState));
29 MOCK_METHOD4(GetAvailableStatus, int32_t(int32_t apiVersion, int32_t userId, AuthType authType,
32 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) in GetAvailableStatus()
38 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
41 MOCK_METHOD4(SetProperty, void(int32_t userId, AuthType authType, const Attributes &attributes,
48 uint64_t(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
55 uint64_t(const std::vector<uint8_t> &challenge, AuthType authType, sptr<UserAuthCallbackInterface> &callback));
61 MOCK_METHOD2(RegistUserAuthSuccessEventListener, int32_t(const std::vector<AuthType> &authType,
/base/useriam/user_auth_framework/services/core/inc/
H A Dwidget_schedule_node_callback.h35 virtual void ExecuteAuthList(const std::set<AuthType> &authTypeList, bool endAfterFirstFail,
40 virtual void StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
41 virtual void SuccessAuth(AuthType authType) = 0;
43 AuthType &rotateAuthType) = 0;
H A Dauth_event_listener_manager.h31 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
34 void OnNotifyAuthSuccessEvent(int32_t userId, AuthType authType, int32_t callerType, std::string &callerName);
49 void AddAuthSuccessEventListener(AuthType authType, const sptr<AuthEventListenerInterface> &listener);
50 void RemoveAuthSuccessEventListener(AuthType authType, const sptr<AuthEventListenerInterface> &listener);
51 std::set<sptr<AuthEventListenerInterface>> GetListenerSet(AuthType authType);
53 std::map<AuthType, std::set<sptr<AuthEventListenerInterface>>> eventListenerMap_;
H A Dwidget_schedule_node.h58 virtual bool StartAuthList(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail,
60 virtual bool StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
61 virtual bool SuccessAuth(AuthType authType) = 0;
65 AuthType &rotateAuthType) = 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 authTrustLevel) = 0;
41 virtual void GetProperty(int32_t userId, AuthType authType,
44 virtual void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
50 virtual uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
56 virtual uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
67 virtual int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) = 0;
69 virtual int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
/base/useriam/pin_auth/services/modules/executors/src/
H A Dpin_auth_executor_hdi_common.cpp27 UserAuth::ResultCode ConvertAuthType(AuthType in, UserAuth::AuthType &out) in ConvertAuthType()
29 static const std::map<AuthType, UserAuth::AuthType> data = { in ConvertAuthType()
30 {AuthType::PIN, UserAuth::AuthType::PIN}, in ConvertAuthType()
31 {AuthType::RECOVERY_KEY, UserAuth::AuthType::RECOVERY_KEY}, in ConvertAuthType()
84 ret = ConvertAuthType(static_cast<AuthType>(in.authType), out.authType); in MoveHdiExecutorInfo()
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp132 void OnNotifyAuthSuccessEvent(int32_t userId, AuthType authType, int32_t callerType,
146 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetEnrolledState()
157 AuthType authType = static_cast<AuthType>(pin); in FuzzGetAvailableStatusOtherScene()
168 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetAvailableStatus()
181 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetProperty()
201 AuthType authTyp in FuzzSetProperty()
[all...]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/
H A Dhks_useridm_api_mock.cpp37 static int32_t ConvertToHksAuthType(enum USER_IAM::AuthType authType, enum HksUserAuthType *hksAuthType) 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()
111 return ConvertToHksAuthType((enum USER_IAM::AuthType)userIamValue, (enum HksUserAuthType *)hksValue); in HksConvertUserIamTypeToHksType()
/base/useriam/user_auth_framework/interfaces/inner_api/
H A Duser_auth_client_defines.h58 AuthType authType;
124 std::vector<AuthType> authTypes;
136 AuthType authType {0};
146 AuthType authType {0};
185 std::vector<AuthType> authTypes;
H A Duser_idm_client_defines.h40 AuthType authType {0};
54 AuthType authType {0};
74 AuthType authType {0};
/base/security/asset/services/crypto_manager/src/
H A Dsecret_key.rs19 use asset_definition::{Accessibility, AuthType, ErrCode, Result};
28 auth_type: AuthType,
67 auth_type: AuthType, in calculate_key_alias()
78 append_attr::<AuthType>("AuthType", auth_type, &mut alias); in calculate_key_alias()
86 auth_type: AuthType, in get_existing_key_alias()
134 auth_type: AuthType, in huks_rename_key_alias()
157 auth_type: AuthType, in rename_key_alias()
191 auth_type: AuthType, in new_with_alias()
202 auth_type: AuthType, in new_without_alias()
[all...]
/base/useriam/user_auth_framework/services/context/src/
H A Dwidget_json.cpp136 AuthType Str2AuthType(const std::string &strAuthType) in Str2AuthType()
138 AuthType authType = AuthType::ALL; in Str2AuthType()
140 authType = AuthType::ALL; in Str2AuthType()
142 authType = AuthType::PIN; in Str2AuthType()
144 authType = AuthType::FACE; in Str2AuthType()
146 authType = AuthType::FINGERPRINT; in Str2AuthType()
153 std::string AuthType2Str(const AuthType &authType) in AuthType2Str()
157 case AuthType::ALL: { in AuthType2Str()
161 case AuthType in AuthType2Str()
[all...]
H A Dwidget_client.cpp84 std::vector<AuthType> authTypeList = {}; in OnNotice()
93 void WidgetClient::ProcessNotice(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) in ProcessNotice()
98 if (authTypeList.size() == 1 && authTypeList[0] == AuthType::ALL) { in ProcessNotice()
110 if ((authTypeList.size() == 1 && authTypeList[0] == AuthType::ALL) || authTypeList.size() != 1) { in ProcessNotice()
130 void WidgetClient::ReportWidgetResult(int32_t result, AuthType authType, in ReportWidgetResult()
147 if (authType == AuthType::FINGERPRINT && !sensorInfo_.empty()) { in ReportWidgetResult()
166 void WidgetClient::ReportWidgetTip(int32_t tipType, AuthType authType, std::vector<uint8_t> tipInfo) in ReportWidgetTip()
193 void WidgetClient::SetAuthTypeList(const std::vector<AuthType> &authTypeList) in SetAuthTypeList()
269 bool WidgetClient::GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) in GetAuthTypeList()
275 std::vector<AuthType> tempLis in GetAuthTypeList()
[all...]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/
H A Dhks_useridm_api_wrap.cpp36 static int32_t ConvertFromHksAuthType(enum HksUserAuthType hksAuthType, enum USER_IAM::AuthType *authType) 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 *hksAuthType) 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()
203 enum USER_IAM::AuthType authType; in HksUserIdmGetAuthInfoNum()
240 return ConvertToHksAuthType(static_cast<enum USER_IAM::AuthType>(userIamValu in HksConvertUserIamTypeToHksType()
[all...]

Completed in 8 milliseconds

12345678910