/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | widget_schedule_node_impl_test.cpp | 81 …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));
|
D | widget_client_test.cpp | 179 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/ |
D | hks_core_useriam_wrap.cpp | 30 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/ |
D | user_auth_service.h | 42 …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/ |
D | widget_schedule_node_impl.h | 42 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/ |
D | auth_widget_helper.h | 28 …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,
|
D | auth_event_listener_manager.h | 31 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_;
|
D | widget_schedule_node_callback.h | 35 … 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;
|
D | widget_schedule_node.h | 56 … 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/ |
D | user_auth_interface.h | 36 …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/ |
D | mock_user_auth_service.h | 27 …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,
|
D | mock_widget_schedule_node_callback.h | 31 …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));
|
D | mock_widget_schedule_node.h | 29 …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/ |
D | user_auth_service_fuzzer.cpp | 131 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/ |
D | secret_key.rs | 19 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/ |
D | widget_context.h | 66 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 };
|
D | widget_client.h | 40 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 ¬ice, std::vector<AuthType> &authTypeList); 71 std::vector<AuthType> authTypeList_ {};
|
/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, 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/ |
D | hks_useridm_api_mock.cpp | 37 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/ |
D | user_idm_client_defines.h | 40 AuthType authType {0}; 54 AuthType authType {0}; 74 AuthType authType {0};
|
/base/useriam/user_auth_framework/services/context/src/ |
D | widget_client.cpp | 81 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 ¬ice, 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 …]
|
D | widget_json.cpp | 121 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/ |
D | hks_useridm_api_wrap.cpp | 36 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/ |
D | pin_auth_executor_hdi_common.cpp | 27 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/ |
D | user_auth_client_impl.h | 34 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,
|