Home
last modified time | relevance | path

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

12345678910

/base/useriam/user_auth_framework/test/unittest/services/src/
Dwidget_schedule_node_impl_test.cpp81 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
94 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
108 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
112 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 …]
/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
Dhks_core_useriam_wrap.cpp30 using AuthType = OHOS::HDI::UserAuth::V2_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/ipc/inc/
Duser_auth_service.h42 …int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) o…
43 void GetProperty(int32_t userId, AuthType authType,
46 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
50 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
54 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
60 …int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) over…
61 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> &authType);
81 int32_t CheckAuthWidgetType(const std::vector<AuthType> &authType);
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dwidget_schedule_node_impl.h42 bool StartAuthList(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail) override;
43 bool StopAuthList(const std::vector<AuthType> &authTypeList) override;
44 bool SuccessAuth(AuthType authType) override;
68 AuthType successAuthType_ {0};
69 std::vector<AuthType> startAuthTypeList_;
71 std::vector<AuthType> stopAuthTypeList_;
72 std::set<AuthType> runningAuthTypeSet_;
/base/useriam/user_auth_framework/services/core/inc/
Dauth_widget_helper.h28 …static bool InitWidgetContextParam(const AuthParamInner &authParam, std::vector<AuthType> &validTy…
31 …const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl, std::vector<AuthType> &valid…
38 static bool GetUserAuthProfile(int32_t userId, const AuthType &authType,
40 static bool ParseAttributes(const Attributes &values, const AuthType &authType,
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 &…
49 …void AddAuthSuccessEventListener(AuthType authType, const sptr<AuthEventListenerInterface> &listen…
50 …void RemoveAuthSuccessEventListener(AuthType authType, const sptr<AuthEventListenerInterface> &lis…
51 std::set<sptr<AuthEventListenerInterface>> GetListenerSet(AuthType authType);
53 std::map<AuthType, std::set<sptr<AuthEventListenerInterface>>> eventListenerMap_;
Dwidget_schedule_node_callback.h35 … virtual void ExecuteAuthList(const std::set<AuthType> &authTypeList, bool endAfterFirstFail) = 0;
39 virtual void StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
40 virtual void SuccessAuth(AuthType authType) = 0;
Dwidget_schedule_node.h56 … virtual bool StartAuthList(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail) = 0;
57 virtual bool StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
58 virtual bool SuccessAuth(AuthType authType) = 0;
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Duser_auth_interface.h36 …virtual int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrust…
38 virtual void GetProperty(int32_t userId, AuthType authType,
41 virtual void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
47 …virtual uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
53 virtual uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
64 …virtual int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledSta…
66 virtual int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_user_auth_service.h27 …MOCK_METHOD3(GetEnrolledState, int32_t(int32_t apiVersion, AuthType authType, EnrolledState &enrol…
29 …MOCK_METHOD3(GetAvailableStatus, int32_t(int32_t apiVersion, AuthType authType, AuthTrustLevel aut…
32 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
35 MOCK_METHOD4(SetProperty, void(int32_t userId, AuthType authType, const Attributes &attributes,
42 uint64_t(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
49 …uint64_t(const std::vector<uint8_t> &challenge, AuthType authType, sptr<UserAuthCallbackInterface>…
55 MOCK_METHOD2(RegistUserAuthSuccessEventListener, int32_t(const std::vector<AuthType> &authType,
Dmock_widget_schedule_node_callback.h31 …MOCK_METHOD2(ExecuteAuthList, void(const std::set<AuthType> &authTypeList, bool endAfterFirstFail)…
35 MOCK_METHOD1(StopAuthList, void(const std::vector<AuthType> &authTypeList));
36 MOCK_METHOD1(SuccessAuth, void(AuthType authType));
Dmock_widget_schedule_node.h29 …MOCK_METHOD2(StartAuthList, bool(const std::vector<AuthType> &authTypeList, bool endAfterFirstFail…
30 MOCK_METHOD1(StopAuthList, bool(const std::vector<AuthType> &));
31 MOCK_METHOD1(SuccessAuth, bool(AuthType));
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
Duser_auth_service_fuzzer.cpp131 void OnNotifyAuthSuccessEvent(int32_t userId, AuthType authType, int32_t callerType, in OnNotifyAuthSuccessEvent()
145 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetEnrolledState()
155 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetAvailableStatus()
166 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetProperty()
186 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzSetProperty()
205 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzAuth()
227 .authType = static_cast<AuthType>(parcel.ReadInt32()), in FuzzAuthUser()
240 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzIdentify()
275 authParam.authTypes.push_back(static_cast<AuthType>(at)); in FuzzAuthWidget()
314 std::vector<AuthType> authTypeList; in FuzzRegistUserAuthSuccessEventListener()
[all …]
/base/security/asset/services/crypto_manager/src/
Dsecret_key.rs19 use asset_definition::{Accessibility, AuthType, ErrCode, Result};
27 auth_type: AuthType,
57 auth_type: AuthType, in calculate_key_alias() argument
67 append_attr::<AuthType>("AuthType", auth_type, &mut alias); in calculate_key_alias()
77 auth_type: AuthType, in new() argument
125 let secret_key = SecretKey::new(calling_info, AuthType::None, accessibility, true); in delete_by_owner()
129 let secret_key = SecretKey::new(calling_info, AuthType::Any, accessibility, true); in delete_by_owner()
133 let secret_key = SecretKey::new(calling_info, AuthType::None, accessibility, false); in delete_by_owner()
137 let secret_key = SecretKey::new(calling_info, AuthType::Any, accessibility, false); in delete_by_owner()
146 self.auth_type == AuthType::Any in need_user_auth()
/base/useriam/user_auth_framework/services/context/inc/
Dwidget_context.h66 void ExecuteAuthList(const std::set<AuthType> &authTypeList, bool endAfterFirstFail) override;
70 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
71 void SuccessAuth(AuthType authType) override;
83 AuthType authType, AuthTrustLevel authTrustLevel, bool endAfterFirstFail);
89 …std::shared_ptr<ContextCallback> GetAuthContextCallback(AuthType authType, AuthTrustLevel authTrus…
97 AuthType authType {0};
103 AuthType authType { 0 };
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);
71 std::vector<AuthType> authTypeList_ {};
/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,
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,
49 …int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) over…
50 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
/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()
111 …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()
116 void WidgetClient::ReportWidgetResult(int32_t result, AuthType authType, in ReportWidgetResult()
133 if (authType == AuthType::FINGERPRINT && !sensorInfo_.empty()) { in ReportWidgetResult()
152 void WidgetClient::ReportWidgetTip(int32_t tipType, AuthType authType, std::vector<uint8_t> tipInfo) in ReportWidgetTip()
179 void WidgetClient::SetAuthTypeList(const std::vector<AuthType> &authTypeList) in SetAuthTypeList()
249 bool WidgetClient::GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) in GetAuthTypeList()
255 std::vector<AuthType> tempList = notice.AuthTypeList(); in GetAuthTypeList()
260 if (tempList.size() == 1 && tempList[0] == AuthType::ALL) { in GetAuthTypeList()
265 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList()
[all …]
Dwidget_json.cpp121 AuthType Str2AuthType(const std::string &strAuthType) in Str2AuthType()
123 std::map<std::string, AuthType> authTypeMap; in Str2AuthType()
124 authTypeMap.emplace(std::make_pair(AUTH_TYPE_ALL, AuthType::ALL)); in Str2AuthType()
125 authTypeMap.emplace(std::make_pair(AUTH_TYPE_PIN, AuthType::PIN)); in Str2AuthType()
126 authTypeMap.emplace(std::make_pair(AUTH_TYPE_FACE, AuthType::FACE)); in Str2AuthType()
127 authTypeMap.emplace(std::make_pair(AUTH_TYPE_FINGER_PRINT, AuthType::FINGERPRINT)); in Str2AuthType()
128 auto result = AuthType::ALL; in Str2AuthType()
135 std::string AuthType2Str(const AuthType &authType) in AuthType2Str()
138 authTypeMap.emplace(std::make_pair(AuthType::ALL, AUTH_TYPE_ALL)); in AuthType2Str()
139 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()
194 enum USER_IAM::AuthType authType; in HksUserIdmGetAuthInfoNum()
227 return ConvertToHksAuthType(static_cast<enum USER_IAM::AuthType>(userIamValue), in HksConvertUserIamTypeToHksType()
/base/useriam/pin_auth/services/modules/executors/src/
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()
83 ret = ConvertAuthType(static_cast<AuthType>(in.authType), out.authType); in MoveHdiExecutorInfo()
/base/useriam/user_auth_framework/frameworks/native/client/inc/
Duser_auth_client_impl.h34 int32_t GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel);
35 … int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel);
42 …inNorthAuthentication(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
45 uint64_t BeginIdentification(const std::vector<uint8_t> &challenge, AuthType authType,
53 int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState);
54 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,

12345678910