Home
last modified time | relevance | path

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

12345678910>>...18

/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);
83 …bool CheckPrivatePinEnroll(const std::vector<AuthType> &authType, std::vector<AuthType> &validType…
84 int32_t CheckAuthWidgetType(const std::vector<AuthType> &authType);
103 bool CheckAuthTypeIsValid(std::vector<AuthType> authType);
105 std::vector<AuthType> &validType);
[all …]
/ohos5.0/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::FING…
97 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
111 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING…
115 EXPECT_TRUE(schedule->SuccessAuth(AuthType::PIN));
166 AuthType rotateAuthType = PIN;
182 AuthType rotateAuthType = FINGERPRINT;
198 AuthType rotateAuthType = FACE;
H A Dwidget_client_test.cpp180 std::vector<AuthType> authTypeList;
194 std::vector<AuthType> authTypeList;
210 std::vector<AuthType> authTypeList;
226 std::vector<AuthType> authTypeList;
242 std::vector<AuthType> authTypeList;
258 std::vector<AuthType> authTypeList;
274 std::vector<AuthType> authTypeList;
292 std::vector<AuthType> authTypeList;
310 std::vector<AuthType> authTypeList;
326 std::vector<AuthType> authTypeList;
[all …]
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
H A Dhks_core_useriam_wrap.cpp30 using AuthType = OHOS::HDI::UserAuth::V3_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()
/ohos5.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};
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp146 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 authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzSetProperty()
220 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzAuth()
255 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzIdentify()
329 std::vector<AuthType> authTypeList; in FuzzRegistUserAuthSuccessEventListener()
392 std::vector<AuthType> validType; in FuzzCheckValidSolution()
491 AuthType authType = PIN; in FuzzFillGetPropertyValue()
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp838 … if ((type != AuthType::PIN) && (type != AuthType::FACE) && (type != AuthType::FINGERPRINT) && in CheckAuthWidgetType()
852 if (iter == AuthType::PIN) { in CheckAuthWidgetType()
872 if (authType[type0] == AuthType::FACE) { in CheckSingeFaceOrFinger()
881 …serAuthService::CheckPrivatePinEnroll(const std::vector<AuthType> &authType, std::vector<AuthType>… in CheckPrivatePinEnroll()
885 if (iter == AuthType::PRIVATE_PIN) { in CheckPrivatePinEnroll()
897 if (iter == AuthType::FACE) { in CheckPrivatePinEnroll()
916 if (iter == AuthType::PRIVATE_PIN) { in CheckCallerPermissionForPrivatePin()
968 … (authType[authType0] == AuthType::FACE) && (authType[authType1] == AuthType::FINGERPRINT)) || in CheckAuthPermissionAndParam()
970 … (authType[authType0] == AuthType::FINGERPRINT) && (authType[authType1] == AuthType::FACE))) { in CheckAuthPermissionAndParam()
1114 std::vector<AuthType> validType; in AuthWidget()
[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,
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_user_auth_service.h27 …MOCK_METHOD3(GetEnrolledState, int32_t(int32_t apiVersion, AuthType authType, EnrolledState &enrol…
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,
44 MOCK_METHOD4(SetProperty, void(int32_t userId, AuthType authType, const Attributes &attributes,
51 uint64_t(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
58 …uint64_t(const std::vector<uint8_t> &challenge, AuthType authType, sptr<UserAuthCallbackInterface>…
64 MOCK_METHOD2(RegistUserAuthSuccessEventListener, int32_t(const std::vector<AuthType> &authType,
/ohos5.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) o…
34 void GetProperty(int32_t userId, AuthType authType,
39 void SetProperty(int32_t userId, AuthType authType, const Attributes &attributes,
43 uint64_t Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType,
47 uint64_t Identify(const std::vector<uint8_t> &challenge, AuthType authType,
53 …int32_t GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) over…
54 int32_t RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType,
70 …int32_t GetAvailableStatusInner(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLev…
/ohos5.0/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp529 AuthType authType = AuthType::PIN;
673 AuthType authType = AuthType::PIN;
717 AuthType authType = AuthType::PIN;
752 AuthType authType = AuthType::PIN;
939 AuthType authType = AuthType::PIN;
955 AuthType authType = AuthType::PIN;
987 AuthType authType = AuthType::PIN;
1039 AuthType authType = AuthType::PIN;
1086 AuthType authType = AuthType::PIN;
1114 AuthType authType = AuthType::PIN;
[all …]
/ohos5.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() argument
78 append_attr::<AuthType>("AuthType", auth_type, &mut alias); in calculate_key_alias()
86 auth_type: AuthType, in get_existing_key_alias() argument
134 auth_type: AuthType, in huks_rename_key_alias() argument
157 auth_type: AuthType, in rename_key_alias() argument
191 auth_type: AuthType, in new_with_alias() argument
202 auth_type: AuthType, in new_without_alias() argument
262 … let secret_key = SecretKey::new_without_alias(calling_info, AuthType::Any, accessibility, true)?; in delete_by_owner()
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/context/src/
H A Dwidget_json.cpp141 AuthType authType = AuthType::ALL; in Str2AuthType()
143 authType = AuthType::ALL; in Str2AuthType()
145 authType = AuthType::PIN; in Str2AuthType()
147 authType = AuthType::FACE; in Str2AuthType()
149 authType = AuthType::FINGERPRINT; in Str2AuthType()
162 case AuthType::ALL: { in AuthType2Str()
166 case AuthType::PIN: { in AuthType2Str()
170 case AuthType::FACE: { in AuthType2Str()
174 case AuthType::FINGERPRINT: { in AuthType2Str()
178 case AuthType::PRIVATE_PIN: { in AuthType2Str()
[all …]
H A Dauth_widget_helper.cpp34 bool AuthWidgetHelper::InitWidgetContextParam(const AuthParamInner &authParam, std::vector<AuthType in InitWidgetContextParam()
44 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in InitWidgetContextParam()
46 } else if (authType == AuthType::FINGERPRINT) { in InitWidgetContextParam()
60 bool AuthWidgetHelper::GetUserAuthProfile(int32_t userId, const AuthType &authType, in GetUserAuthProfile()
96 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in GetUserAuthProfile()
113 bool AuthWidgetHelper::ParseAttributes(const Attributes &values, const AuthType &authType, in ParseAttributes()
116 if (authType == AuthType::PIN || authType == AuthType::PRIVATE_PIN) { in ParseAttributes()
138 …const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl, std::vector<AuthType> &valid… in CheckValidSolution()
164 validTypeList.emplace_back(static_cast<AuthType>(type)); in CheckValidSolution()
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()
130 void WidgetClient::ReportWidgetResult(int32_t result, AuthType authType, in ReportWidgetResult()
147 if (authType == AuthType::FINGERPRINT && !sensorInfo_.empty()) { in ReportWidgetResult()
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> tempList = notice.AuthTypeList(); in GetAuthTypeList()
280 if (tempList.size() == 1 && tempList[0] == AuthType::ALL) { in GetAuthTypeList()
285 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList()
[all …]
/ohos5.0/drivers/interface/user_auth/v1_2/
H A DUserAuthTypes.idl44 enum AuthType : int {
121 /**< Authentication type. See @{AuthType}. */
122 enum AuthType authType;
162 enum AuthType authType;
185 enum AuthType authType;
253 enum AuthType authType;
272 enum AuthType authType;
289 enum AuthType authType;
319 enum AuthType authType;
370 enum AuthType authType;
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/user_auth_v1_2/foo/user_auth/v1_2/
H A DUserAuthTypes.idl44 enum AuthType : int {
121 /**< Authentication type. See @{AuthType}. */
122 enum AuthType authType;
162 enum AuthType authType;
185 enum AuthType authType;
253 enum AuthType authType;
272 enum AuthType authType;
289 enum AuthType authType;
319 enum AuthType authType;
370 enum AuthType authType;
[all …]
/ohos5.0/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::PRIVATE_PIN, UserAuth::AuthType::PRIVATE_PIN}, in ConvertAuthType()
84 ret = ConvertAuthType(static_cast<AuthType>(in.authType), out.authType); in MoveHdiExecutorInfo()
/ohos5.0/base/useriam/user_auth_framework/services/context/inc/
H A Dwidget_context.h70 void ExecuteAuthList(const std::set<AuthType> &authTypeList, bool endAfterFirstFail,
75 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
76 void SuccessAuth(AuthType authType) override;
78 AuthType &rotateAuthType) override;
94 AuthType rotateAuthType {0};
98AuthType authType, AuthTrustLevel authTrustLevel, bool endAfterFirstFail, AuthIntent authIntent);
104 …std::shared_ptr<ContextCallback> GetAuthContextCallback(AuthType authType, AuthTrustLevel authTrus…
115 AuthType authType {0};
121 AuthType authType {0};
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 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…
34 static bool GetUserAuthProfile(int32_t userId, const AuthType &authType,
40 static bool ParseAttributes(const Attributes &values, const AuthType &authType,
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/userauth/
H A Dinterface_i_user_auth_interface_v10.md29 | [GetCredential](#getcredential) ([in] int userId, [in] enum [AuthType](_hdf_user_auth_v10.md#auth…
39 | [GetAuthTrustLevel](#getauthtrustlevel) ([in] int userId, [in] enum [AuthType](_hdf_user_auth_v10…
40 …nt userId, [in] enum [AuthType](_hdf_user_auth_v10.md#authtype)[] authTypes, [in] unsigned int aut…
142 | authType | 用户身份识别类型[AuthType](_hdf_user_auth_v10.md#authtype)。 |
355 IUserAuthInterface::GetAuthTrustLevel ([in] int userId, [in] enum AuthType authType, [out] unsigned…
368 | authType | 认证类型[AuthType](_hdf_user_auth_v10.md#authtype)。 |
381 IUserAuthInterface::GetCredential ([in] int userId, [in] enum AuthType authType, [out] struct Crede…
394 | authType | 凭据类型[AuthType](_hdf_user_auth_v10.md#authtype)。 |
434 …idSolution ([in] int userId, [in] enum AuthType[] authTypes, [in] unsigned int authTrustLevel, [ou…
447 | authTypes | 用于筛选的认证方式列表[AuthType](_hdf_user_auth_v10.md#authtype)。 |
[all …]
H A Dinterface_i_user_auth_interface_v12.md39 | [GetAuthTrustLevel](#getauthtrustlevel) ([in] int userId, [in] enum [AuthType](_hdf_user_auth_v12…
40 …nt userId, [in] enum [AuthType](_hdf_user_auth_v12.md#authtype)[] authTypes, [in] unsigned int aut…
255 | authType | 用户身份识别类型[AuthType](_hdf_user_auth_v12.md#authtype)。 |
283 | authType | 用户身份识别类型[AuthType](_hdf_user_auth_v12.md#authtype)。 |
544 IUserAuthInterface::GetAuthTrustLevel ([in] int userId, [in] enum AuthType authType, [out] unsigned…
557 | authType | 认证类型[AuthType](_hdf_user_auth_v12.md#authtype)。 |
570 IUserAuthInterface::GetCredential ([in] int userId, [in] enum AuthType authType, [out] struct Crede…
583 | authType | 凭据类型[AuthType](_hdf_user_auth_v12.md#authtype)。 |
623 …idSolution ([in] int userId, [in] enum AuthType[] authTypes, [in] unsigned int authTrustLevel, [ou…
636 | authTypes | 用于筛选的认证方式列表[AuthType](_hdf_user_auth_v12.md#authtype)。 |
[all …]
/ohos5.0/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 *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()
231 return ConvertToHksAuthType(static_cast<enum USER_IAM::AuthType>(userIamValue), in HksConvertUserIamTypeToHksType()
/ohos5.0/base/useriam/user_auth_framework/services/core/inc/
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 &…
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_;

12345678910>>...18