Home
last modified time | relevance | path

Searched refs:AttributeKey (Results 1 – 25 of 45) sorted by relevance

12

/base/useriam/user_auth_framework/interfaces/inner_api/
Dattributes.h39 enum AttributeKey : uint32_t { enum
252 bool SetBoolValue(AttributeKey key, bool value);
261 bool SetUint64Value(AttributeKey key, uint64_t value);
270 bool SetUint32Value(AttributeKey key, uint32_t value);
279 bool SetUint16Value(AttributeKey key, uint16_t value);
288 bool SetUint8Value(AttributeKey key, uint8_t value);
297 bool SetInt32Value(AttributeKey key, int32_t value);
306 bool SetInt64Value(AttributeKey key, int64_t value);
315 bool SetStringValue(AttributeKey key, const std::string &value);
324 bool SetAttributesValue(AttributeKey key, const Attributes &value);
[all …]
Duser_auth_client_defines.h72 std::vector<Attributes::AttributeKey> keys {};
/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/
Dattributes.cpp42 bool SetBoolValue(AttributeKey key, bool value);
43 bool SetUint64Value(AttributeKey key, uint64_t value);
44 bool SetUint32Value(AttributeKey key, uint32_t value);
45 bool SetUint16Value(AttributeKey key, uint16_t value);
46 bool SetUint8Value(AttributeKey key, uint8_t value);
47 bool SetInt32Value(AttributeKey key, int32_t value);
48 bool SetInt64Value(AttributeKey key, int64_t value);
49 bool SetStringValue(AttributeKey key, const std::string &value);
50 bool SetAttributesValue(AttributeKey key, const Impl &array);
51 bool SetUint64ArrayValue(AttributeKey key, const std::vector<uint64_t> &value);
[all …]
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_callback.cpp103 if (extraInfo.GetUint8ArrayValue(Attributes::AttributeKey::ATTR_SIGNATURE, token)) { in GenerateAttributesInfo()
104 extraAuthInfo.SetUint8ArrayValue(Attributes::AttributeKey::ATTR_SIGNATURE, token); in GenerateAttributesInfo()
107 if (extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes)) { in GenerateAttributesInfo()
108 extraAuthInfo.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in GenerateAttributesInfo()
111 if (extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, freezingTime)) { in GenerateAttributesInfo()
112 extraAuthInfo.SetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, freezingTime); in GenerateAttributesInfo()
115 …if (extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_NEXT_FAIL_LOCKOUT_DURATION, nextPhaseFr… in GenerateAttributesInfo()
116 …extraAuthInfo.SetInt32Value(Attributes::AttributeKey::ATTR_NEXT_FAIL_LOCKOUT_DURATION, nextPhaseFr… in GenerateAttributesInfo()
119 if (extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_USER_ID, accountId)) { in GenerateAttributesInfo()
120 extraAuthInfo.SetInt32Value(Attributes::AttributeKey::ATTR_USER_ID, accountId); in GenerateAttributesInfo()
[all …]
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_common.cpp142 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_CREDENTIAL_ID, param->credentialId); in OnResult()
192 extraInfo.GetUint8ArrayValue(Attributes::AttributeKey::ATTR_EXTRA_INFO, param->extraInfo); in OnAcquireInfo()
292 Attributes::AttributeKey &out) in ConvertGetPropertyTypeToAttributeKey()
294 static const std::map<GetPropertyType, Attributes::AttributeKey> type2Key = { in ConvertGetPropertyTypeToAttributeKey()
295 { AUTH_SUB_TYPE, Attributes::AttributeKey::ATTR_PIN_SUB_TYPE }, in ConvertGetPropertyTypeToAttributeKey()
296 { REMAIN_TIMES, Attributes::AttributeKey::ATTR_REMAIN_TIMES }, in ConvertGetPropertyTypeToAttributeKey()
297 { FREEZING_TIME, Attributes::AttributeKey::ATTR_FREEZING_TIME }, in ConvertGetPropertyTypeToAttributeKey()
298 { ENROLLMENT_PROGRESS, Attributes::AttributeKey::ATTR_ENROLL_PROGRESS }, in ConvertGetPropertyTypeToAttributeKey()
299 { SENSOR_INFO, Attributes::AttributeKey::ATTR_SENSOR_INFO }, in ConvertGetPropertyTypeToAttributeKey()
300 { NEXT_PHASE_FREEZING_TIME, Attributes::AttributeKey::ATTR_NEXT_FAIL_LOCKOUT_DURATION }, in ConvertGetPropertyTypeToAttributeKey()
[all …]
/base/account/os_account/test/fuzztest/iamaccount/getproperty_fuzzer/
Dgetproperty_fuzzer.cpp40 std::vector<Attributes::AttributeKey> keys = {static_cast<Attributes::AttributeKey>(size)}; in GetPropertyFuzzTest()
/base/useriam/pin_auth/services/modules/executors/inc/
Dpin_auth_all_in_one_hdi.h50 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
54 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
56 const std::vector<UserAuth::Attributes::AttributeKey> inVector,
/base/account/os_account/test/fuzztest/iamaccount_stub/getpropertystub_fuzzer/
Dgetpropertystub_fuzzer.cpp47 std::vector<Attributes::AttributeKey> keys = {static_cast<Attributes::AttributeKey>(size)}; in GetPropertyStubFuzzTest()
/base/useriam/fingerprint_auth/services/inc/
Dfingerprint_auth_all_in_one_executor_hdi.h56 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
70 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
72 … const std::vector<UserAuth::Attributes::AttributeKey> inVector, std::vector<int32_t> &outVector);
/base/useriam/face_auth/services/inc/
Dface_auth_all_in_one_executor_hdi.h56 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
70 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
72 … const std::vector<UserAuth::Attributes::AttributeKey> inVector, std::vector<int32_t> &outVector);
/base/account/os_account/frameworks/account_iam/src/
Daccount_iam_callback_service.cpp118 attr.SetUint8ArrayValue(Attributes::AttributeKey::ATTR_SIGNATURE, (*authResult).token); in OnResult()
119 …attr.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, (*authResult).authStatusInfo.remai… in OnResult()
120 …attr.SetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, (*authResult).authStatusInfo.free… in OnResult()
/base/useriam/user_auth_framework/test/unittest/executors/
Dexecutor_unit_test.cpp422 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, invalidScheduleMode);
463 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
464 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_ACCESS_TOKEN_ID, testTokenId);
507 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
508 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_ACCESS_TOKEN_ID, testTokenId);
509 commandAttrs->SetUint8ArrayValue(Attributes::AttributeKey::ATTR_EXTRA_INFO, testExtraInfo);
534 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
560 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
561 commandAttrs->SetUint64Value(Attributes::AttributeKey::ATTR_CALLER_UID, testCallUid);
604 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, AUTH);
[all …]
/base/useriam/user_auth_framework/services/ipc/inc/
Duser_auth_service.h44 const std::vector<Attributes::AttributeKey> &keys,
108 void FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> keys,
110 …void FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> keys, Att…
/base/useriam/pin_auth/services/modules/executors/src/
Dpin_auth_all_in_one_hdi.cpp202 const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) in GetProperty()
230 const std::vector<UserAuth::Attributes::AttributeKey> inItems, std::vector<int32_t> &outItems) in ConvertAttributeKeyVectorToPropertyType()
247 … PinAuthAllInOneHdi::ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in, in ConvertAttributeKeyToPropertyType()
250 static const std::map<UserAuth::Attributes::AttributeKey, GetPropertyType> data = { in ConvertAttributeKeyToPropertyType()
/base/useriam/user_auth_framework/frameworks/native/executors/src/
Diauth_executor_hdi.cpp67 const std::vector<Attributes::AttributeKey> &keys, Property &property) in GetProperty()
/base/useriam/user_auth_framework/interfaces/inner_api/iam_executor/
Diam_executor_iauth_executor_hdi.h159 const std::vector<Attributes::AttributeKey> &keys, Property &property);
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Duser_auth_interface.h39 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal…
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_user_auth_service.h32 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
/base/useriam/user_auth_framework/test/unittest/executors/mock/
Dmock_iauth_executor_hdi.h53 const std::vector<Attributes::AttributeKey> &keys, Property &property));
/base/useriam/fingerprint_auth/services/src/
Dfingerprint_auth_all_in_one_executor_hdi.cpp201 const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) in GetProperty()
365 const std::vector<UserAuth::Attributes::AttributeKey> inItems, std::vector<int32_t> &outItems) in ConvertAttributeKeyVectorToPropertyType()
379 const UserAuth::Attributes::AttributeKey in, int32_t &out) in ConvertAttributeKeyToPropertyType()
381 static const std::map<UserAuth::Attributes::AttributeKey, GetPropertyType> data = { in ConvertAttributeKeyToPropertyType()
/base/useriam/face_auth/services/src/
Dface_auth_all_in_one_executor_hdi.cpp198 const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) in GetProperty()
362 const std::vector<UserAuth::Attributes::AttributeKey> inItems, std::vector<int32_t> &outItems) in ConvertAttributeKeyVectorToPropertyType()
376 const UserAuth::Attributes::AttributeKey in, int32_t &out) in ConvertAttributeKeyToPropertyType()
378 static const std::map<UserAuth::Attributes::AttributeKey, GetPropertyType> data = { in ConvertAttributeKeyToPropertyType()
/base/useriam/user_auth_framework/frameworks/native/executors/include/framework/
Dframework_executor_callback.h67 …ResultCode FillPropertyToAttribute(const std::vector<Attributes::AttributeKey> &keyList, const Pro…
/base/useriam/face_auth/test/fuzztest/faceauthallinoneexecutorhdi_fuzzer/
Dface_auth_all_in_one_executor_hdi_fuzzer.cpp247 void FillFuzzAttributeKeyVector(Parcel &parcel, std::vector<UserAuth::Attributes::AttributeKey> &ke… in FillFuzzAttributeKeyVector()
252 keys.push_back(static_cast<UserAuth::Attributes::AttributeKey>(val)); in FillFuzzAttributeKeyVector()
357 std::vector<UserAuth::Attributes::AttributeKey> keys; in FuzzGetProperty()
/base/useriam/fingerprint_auth/test/fuzztest/fingerprintauthallinoneexecutorhdi_fuzzer/
Dfingerprint_auth_all_in_one_executor_hdi_fuzzer.cpp244 void FillFuzzAttributeKeyVector(Parcel &parcel, std::vector<UserAuth::Attributes::AttributeKey> &ke… in FillFuzzAttributeKeyVector()
249 keys.push_back(static_cast<UserAuth::Attributes::AttributeKey>(val)); in FillFuzzAttributeKeyVector()
354 std::vector<UserAuth::Attributes::AttributeKey> keys; in FuzzGetProperty()
/base/useriam/user_auth_framework/services/ipc/src/
Duser_auth_service.cpp76 bool IsTemplateIdListRequired(const std::vector<Attributes::AttributeKey> &keys) in IsTemplateIdListRequired()
79 if (key == Attributes::AttributeKey::ATTR_PIN_SUB_TYPE || in IsTemplateIdListRequired()
80 key == Attributes::AttributeKey::ATTR_REMAIN_TIMES || in IsTemplateIdListRequired()
81 key == Attributes::AttributeKey::ATTR_FREEZING_TIME || in IsTemplateIdListRequired()
82 key == Attributes::AttributeKey::ATTR_NEXT_FAIL_LOCKOUT_DURATION) { in IsTemplateIdListRequired()
195 …thService::FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> keys, in FillGetPropertyKeys()
207 …hService::FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> keys, in FillGetPropertyValue()
221 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal… in GetProperty()

12