Home
last modified time | relevance | path

Searched refs:authType (Results 1 - 25 of 321) sorted by relevance

12345678910>>...13

/base/useriam/user_auth_framework/services/core/src/
H A Dauth_event_listener_manager.cpp37 int32_t AuthEventListenerManager::RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType, in RegistUserAuthSuccessEventListener() argument
50 for (const auto &iter : authType) { in RegistUserAuthSuccessEventListener()
76 void AuthEventListenerManager::AddAuthSuccessEventListener(AuthType authType, in AddAuthSuccessEventListener() argument
79 IAM_LOGI("AddAuthSuccessEventListener, authType:%{public}d", static_cast<int32_t>(authType)); in AddAuthSuccessEventListener()
80 auto iter = std::find_if(eventListenerMap_[authType].begin(), eventListenerMap_[authType].end(), in AddAuthSuccessEventListener()
82 if (iter != eventListenerMap_[authType].end()) { in AddAuthSuccessEventListener()
86 eventListenerMap_[authType].insert(listener); in AddAuthSuccessEventListener()
90 void AuthEventListenerManager::RemoveAuthSuccessEventListener(AuthType authType, in RemoveAuthSuccessEventListener() argument
104 GetListenerSet(AuthType authType) GetListenerSet() argument
111 OnNotifyAuthSuccessEvent(int32_t userId, AuthType authType, int32_t callerType, std::string &callerName) OnNotifyAuthSuccessEvent() argument
[all...]
/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,
135 IAM_LOGI("notify: userId: %{public}d, authType: %{public}d, callerName: %{public}s,"
136 "callerType: %{public}d", userId, static_cast<int32_t>(authType), callerName.c_str(), callerType);
146 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetEnrolledState() local
148 g_userAuthService.GetEnrolledState(apiVersion, authType, enrolledState); in FuzzGetEnrolledState()
157 AuthType authType = static_cast<AuthType>(pin); in FuzzGetAvailableStatusOtherScene() local
160 g_userAuthService.GetAvailableStatus(apiVersion, userId, authType, authTrustLevel); in FuzzGetAvailableStatusOtherScene()
168 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetAvailableStatus() local
171 g_userAuthService.GetAvailableStatus(apiVersion, userId, authType, authTrustLevel); in FuzzGetAvailableStatus()
181 AuthType authType in FuzzGetProperty() local
201 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); FuzzSetProperty() local
220 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); FuzzAuth() local
255 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); FuzzIdentify() local
328 std::vector<int32_t> authType; FuzzRegistUserAuthSuccessEventListener() local
383 std::vector<int32_t> authType; FuzzCheckValidSolution() local
437 std::vector<AuthType> authType = {PIN, FACE, FINGERPRINT}; FuzzCheckAuthWidgetType() local
447 std::vector<AuthType> authType = {PIN, FACE, FINGERPRINT}; FuzzCheckSingeFaceOrFinger() local
483 AuthType authType = PIN; FuzzFillGetPropertyValue() local
495 AuthType authType = PIN; FuzzFillGetPropertyKeys() local
[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> &authType);
[all...]
/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp56 void GetTemplatesByAuthType(int32_t userId, AuthType authType, std::vector<uint64_t> &templateIds) in GetTemplatesByAuthType() argument
59 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetTemplatesByAuthType()
61 IAM_LOGE("user %{public}d has no credential type %{public}d", userId, authType); in GetTemplatesByAuthType()
88 void GetResourceNodeByTypeAndRole(AuthType authType, ExecutorRole role, in GetResourceNodeByTypeAndRole() argument
93 [&authTypeNodes, role, authType](const std::weak_ptr<ResourceNode> &weakNode) { in GetResourceNodeByTypeAndRole()
98 if (node->GetAuthType() != authType) { in GetResourceNodeByTypeAndRole()
111 authParamString << "userId:" << authParam.userId << " authType:" << authParam.authType in GetAuthParamStr()
181 int32_t UserAuthService::GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType, in GetAvailableStatus() argument
190 return GetAvailableStatusInner(apiVersion, userId, authType, authTrustLeve in GetAvailableStatus()
193 GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) GetAvailableStatus() argument
214 GetAvailableStatusInner(int32_t apiVersion, int32_t userId, AuthType authType, AuthTrustLevel authTrustLevel) GetAvailableStatusInner() argument
236 FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, std::vector<uint32_t> &uint32Keys) FillGetPropertyKeys() argument
248 FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, Attributes &values) FillGetPropertyValue() argument
261 GetProperty(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &callback) GetProperty() argument
317 SetProperty(int32_t userId, AuthType authType, const Attributes &attributes, sptr<SetExecutorPropertyCallbackInterface> &callback) SetProperty() argument
354 GetAuthContextCallback(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) GetAuthContextCallback() argument
376 CheckAuthPermissionAndParam(int32_t authType, const int32_t &callerType, const std::string &callerName, AuthTrustLevel authTrustLevel) CheckAuthPermissionAndParam() argument
398 Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) Auth() argument
499 CheckAuthPermissionAndParam(AuthType authType, AuthTrustLevel authTrustLevel, const std::shared_ptr<ContextCallback> &contextCallback, Attributes &extraInfo) CheckAuthPermissionAndParam() argument
675 Identify(const std::vector<uint8_t> &challenge, AuthType authType, sptr<UserAuthCallbackInterface> &callback) Identify() argument
771 CheckAuthWidgetType(const std::vector<AuthType> &authType) CheckAuthWidgetType() argument
791 CheckSingeFaceOrFinger(const std::vector<AuthType> &authType) CheckSingeFaceOrFinger() argument
839 std::vector<AuthType> authType = authParam.authTypes; CheckAuthPermissionAndParam() local
1081 GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) GetEnrolledState() argument
1121 CheckAuthTypeIsValid(std::vector<AuthType> authType) CheckAuthTypeIsValid() argument
1134 RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType, const sptr<AuthEventListenerInterface> &listener) RegistUserAuthSuccessEventListener() argument
[all...]
/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/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() argument
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() argument
57 switch (authType) { in ConvertToHksAuthType()
68 HKS_LOG_E("Invalid authType!"); in ConvertToHksAuthType()
113 enum HksUserAuthType authType; in OnSecUserInfo() local
114 ret = ConvertToHksAuthType(info.enrolledInfo[i].authType, &authType); in OnSecUserInfo()
203 enum USER_IAM::AuthType authType; HksUserIdmGetAuthInfoNum() local
[all...]
/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Duser_auth_client_impl.cpp82 int32_t UserAuthClientImpl::GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel) in GetAvailableStatus() argument
84 IAM_LOGI("start, authType:%{public}d authTrustLevel:%{public}u", authType, authTrustLevel); in GetAvailableStatus()
90 return proxy->GetAvailableStatus(INNER_API_VERSION_10000, authType, authTrustLevel); in GetAvailableStatus()
93 int32_t UserAuthClientImpl::GetNorthAvailableStatus(int32_t apiVersion, AuthType authType, in GetNorthAvailableStatus() argument
96 IAM_LOGI("start, apiVersion:%{public}d authType:%{public}d authTrustLevel:%{public}u", in GetNorthAvailableStatus()
97 apiVersion, authType, authTrustLevel); in GetNorthAvailableStatus()
103 return proxy->GetAvailableStatus(apiVersion, authType, authTrustLevel); in GetNorthAvailableStatus()
106 int32_t UserAuthClientImpl::GetAvailableStatus(int32_t userId, AuthType authType, AuthTrustLevel authTrustLevel) in GetAvailableStatus() argument
108 IAM_LOGI("start, userId:%{public}d authType in GetAvailableStatus()
241 BeginNorthAuthentication(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel atl, const std::shared_ptr<AuthenticationCallback> &callback) BeginNorthAuthentication() argument
288 BeginIdentification(const std::vector<uint8_t> &challenge, AuthType authType, const std::shared_ptr<IdentificationCallback> &callback) BeginIdentification() argument
504 GetEnrolledState(int32_t apiVersion, AuthType authType, EnrolledState &enrolledState) GetEnrolledState() argument
520 RegistUserAuthSuccessEventListener(const std::vector<AuthType> &authType, const sptr<AuthEventListenerInterface> &listener) RegistUserAuthSuccessEventListener() argument
[all...]
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
H A Dapp_account_manager.h63 * @param authType - Indicates the authentication type.
68 static ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
226 * @param authType - Indicates the authentication type.
231 static ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType,
238 * @param authType - Indicates the authentication type.
242 static ErrCode GetOAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
249 * @param authType - Indicates the authentication type.
253 static ErrCode GetAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
261 * @param authType - Indicates the authentication type.
266 const std::string &name, const std::string &authType, cons
[all...]
/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_manager.cpp28 ErrCode AppAccountManager::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument
32 owner, authType, options, callback); in AddAccountImplicitly()
109 const std::string &authType, const AAFwk::Want &options, const sptr<IAppAccountAuthenticatorCallback> &callback) in Authenticate()
111 return AppAccount::GetInstance().Authenticate(name, owner, authType, options, callback); in Authenticate()
115 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken()
117 return AppAccount::GetInstance().GetOAuthToken(name, owner, authType, token); in GetOAuthToken()
121 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetAuthToken()
123 return AppAccount::GetInstance().GetAuthToken(name, owner, authType, token); in GetAuthToken()
127 const std::string &name, const std::string &authType, const std::string &token) in SetOAuthToken()
129 return AppAccount::GetInstance().SetOAuthToken(name, authType, toke in SetOAuthToken()
108 Authenticate(const std::string &name, const std::string &owner, const std::string &authType, const AAFwk::Want &options, const sptr<IAppAccountAuthenticatorCallback> &callback) Authenticate() argument
114 GetOAuthToken( const std::string &name, const std::string &owner, const std::string &authType, std::string &token) GetOAuthToken() argument
120 GetAuthToken( const std::string &name, const std::string &owner, const std::string &authType, std::string &token) GetAuthToken() argument
126 SetOAuthToken( const std::string &name, const std::string &authType, const std::string &token) SetOAuthToken() argument
132 DeleteOAuthToken( const std::string &name, const std::string &owner, const std::string &authType, const std::string &token) DeleteOAuthToken() argument
138 DeleteAuthToken( const std::string &name, const std::string &owner, const std::string &authType, const std::string &token) DeleteAuthToken() argument
144 SetOAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) SetOAuthTokenVisibility() argument
151 SetAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) SetAuthTokenVisibility() argument
158 CheckOAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisible) CheckOAuthTokenVisibility() argument
165 CheckAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisible) CheckAuthTokenVisibility() argument
183 GetOAuthList( const std::string &name, const std::string &authType, std::set<std::string> &oauthList) GetOAuthList() argument
189 GetAuthList( const std::string &name, const std::string &authType, std::set<std::string> &oauthList) GetAuthList() argument
[all...]
H A Dapp_account.cpp64 ErrCode AppAccount::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument
68 RETURN_IF_STRING_IS_OVERSIZE(authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is oversize"); in AddAccountImplicitly()
75 return proxy->AddAccountImplicitly(owner, authType, options, callback); in AddAccountImplicitly()
99 RETURN_IF_STRING_IS_OVERSIZE(options.authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is empty or oversize"); in CreateAccountImplicitly()
253 ErrCode AppAccount::Authenticate(const std::string &name, const std::string &owner, const std::string &authType, in Authenticate() argument
258 RETURN_IF_STRING_IS_OVERSIZE(authType, Constants::AUTH_TYPE_MAX_SIZE, "authType is oversize"); in Authenticate()
265 return proxy->Authenticate(name, owner, authType, option in Authenticate()
268 GetOAuthToken( const std::string &name, const std::string &owner, const std::string &authType, std::string &token) GetOAuthToken() argument
282 GetAuthToken( const std::string &name, const std::string &owner, const std::string &authType, std::string &token) GetAuthToken() argument
295 SetOAuthToken(const std::string &name, const std::string &authType, const std::string &token) SetOAuthToken() argument
307 DeleteOAuthToken( const std::string &name, const std::string &owner, const std::string &authType, const std::string &token) DeleteOAuthToken() argument
322 DeleteAuthToken( const std::string &name, const std::string &owner, const std::string &authType, const std::string &token) DeleteAuthToken() argument
336 CheckTokenVisibilityParam( const std::string &name, const std::string &authType, const std::string &bundleName) CheckTokenVisibilityParam() argument
346 SetAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) SetAuthTokenVisibility() argument
360 SetOAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) SetOAuthTokenVisibility() argument
375 CheckAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisible) CheckAuthTokenVisibility() argument
389 CheckOAuthTokenVisibility( const std::string &name, const std::string &authType, const std::string &bundleName, bool &isVisible) CheckOAuthTokenVisibility() argument
426 GetOAuthList( const std::string &name, const std::string &authType, std::set<std::string> &oauthList) GetOAuthList() argument
439 GetAuthList( const std::string &name, const std::string &authType, std::set<std::string> &oauthList) GetAuthList() argument
[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() argument
39 switch (authType) { in ConvertToHksAuthType()
50 HKS_LOG_E("Invalid authType!"); in ConvertToHksAuthType()
59 .authType = HKS_USER_AUTH_TYPE_PIN,
62 .authType = HKS_USER_AUTH_TYPE_FINGERPRINT,
65 .authType = HKS_USER_AUTH_TYPE_FACE,
70 .authType = HKS_USER_AUTH_TYPE_PIN,
/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dwidget_context_callback_impl_test.cpp64 int32_t authType = 0; in HWTEST_F() local
66 Common::MakeShared<WidgetContextCallbackImpl>(std::shared_ptr<WidgetContext>(widgetContext), authType); in HWTEST_F()
77 int32_t authType = 0; in HWTEST_F() local
78 auto contextCallback = Common::MakeShared<WidgetContextCallbackImpl>(widgetContext, authType); in HWTEST_F()
91 int32_t authType = 0; in HWTEST_F() local
93 Common::MakeShared<WidgetContextCallbackImpl>(std::shared_ptr<WidgetContext>(widgetContext), authType); in HWTEST_F()
H A Dcredential_info_test.cpp46 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
63 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
79 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
95 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
111 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
117 EXPECT_EQ(static_cast<uint32_t>(ret), static_cast<uint32_t>(info.authType)); in HWTEST_F()
127 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
143 .authType = static_cast<HdiAuthType>(4), in HWTEST_F()
/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/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 &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() argument
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/account/os_account/frameworks/appaccount/native/include/
H A Dapp_account_proxy.h30 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
57 ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType,
60 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) override;
62 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) override;
64 const std::string &name, const std::string &authType, const std::string &token) override;
65 ErrCode DeleteOAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
67 ErrCode DeleteAuthToken(const std::string &name, const std::string &owner, const std::string &authType,
70 const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) override;
72 const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible) override;
74 const std::string &name, const std::string &authType, cons
[all...]
H A Dapp_account.h37 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
61 ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType,
64 const std::string &name, const std::string &owner, const std::string &authType, std::string &token);
66 const std::string &name, const std::string &owner, const std::string &authType, std::string &token);
67 ErrCode SetOAuthToken(const std::string &name, const std::string &authType, const std::string &token);
69 const std::string &name, const std::string &owner, const std::string &authType, const std::string &token);
71 const std::string &name, const std::string &owner, const std::string &authType, const std::string &token);
73 const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible);
75 const std::string &name, const std::string &authType, const std::string &bundleName, bool isVisible);
77 const std::string &name, const std::string &authType, cons
[all...]
/base/useriam/user_auth_framework/services/context/src/
H A Dwidget_context.cpp141 std::shared_ptr<ContextCallback> WidgetContext::GetAuthContextCallback(AuthType authType, in GetAuthContextCallback() argument
155 widgetCallback->SetTraceAuthType(authType); in GetAuthContextCallback()
160 AuthType authType, AuthTrustLevel authTrustLevel, bool endAfterFirstFail, AuthIntent authIntent) in BuildTask()
167 static_cast<int32_t>(authType))); in BuildTask()
169 auto widgetCallback = GetAuthContextCallback(authType, authTrustLevel, iamCallback); in BuildTask()
175 para.authType = authType; in BuildTask()
231 void WidgetContext::AuthResult(int32_t resultCode, int32_t authType, const Attributes &finalResult) in AuthResult() argument
233 IAM_LOGI("recv task result: %{public}d, authType: %{public}d", resultCode, authType); in AuthResult()
159 BuildTask(const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, bool endAfterFirstFail, AuthIntent authIntent) BuildTask() argument
261 AuthTipInfo(int32_t tipType, int32_t authType, const Attributes &extraInfo) AuthTipInfo() argument
417 SuccessAuth(AuthType authType) SuccessAuth() argument
[all...]
H A Dauth_widget_helper.cpp36 for (auto &authType : validType) { in InitWidgetContextParam()
38 if (!GetUserAuthProfile(para.userId, authType, profile)) { in InitWidgetContextParam()
42 para.authProfileMap[authType] = profile; in InitWidgetContextParam()
43 if (authType == AuthType::PIN) { in InitWidgetContextParam()
45 } else if (authType == AuthType::FINGERPRINT) { in InitWidgetContextParam()
59 bool AuthWidgetHelper::GetUserAuthProfile(int32_t userId, const AuthType &authType, in GetUserAuthProfile() argument
63 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetUserAuthProfile()
65 IAM_LOGE("user %{public}d has no credential type %{public}d", userId, authType); in GetUserAuthProfile()
89 if (authType == AuthType::PIN) { in GetUserAuthProfile()
94 attr.SetInt32Value(Attributes::ATTR_AUTH_TYPE, authType); in GetUserAuthProfile()
106 ParseAttributes(const Attributes &values, const AuthType &authType, ContextFactory::AuthProfile &profile) ParseAttributes() argument
[all...]
/base/useriam/user_auth_framework/frameworks/cj/user_auth/src/
H A Duser_auth_callback_cj.cpp35 int32_t authType{0}; in OnResult()
36 extraInfo.GetInt32Value(Attributes::ATTR_AUTH_TYPE, authType); in OnResult()
42 .authType = static_cast<uint32_t>(authType), in OnResult()
/base/account/os_account/services/accountmgr/src/account_iam/
H A Daccount_iam_service.cpp160 int32_t userId, AuthType authType, const sptr<IGetCredInfoCallback> &callback) in GetCredentialInfo()
166 if ((authType < UserIam::UserAuth::ALL) || in GetCredentialInfo()
167 (static_cast<int32_t>(authType) >= static_cast<int32_t>(IAMAuthType::TYPE_END))) { in GetCredentialInfo()
168 ACCOUNT_LOGE("authType is not in correct range"); in GetCredentialInfo()
171 InnerAccountIAMManager::GetInstance().GetCredentialInfo(userId, authType, callback); in GetCredentialInfo()
196 int32_t AccountIAMService::GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel, int32_t &status) in GetAvailableStatus() argument
202 if (authType < UserIam::UserAuth::ALL) { in GetAvailableStatus()
203 ACCOUNT_LOGE("authType is not in correct range"); in GetAvailableStatus()
206 return InnerAccountIAMManager::GetInstance().GetAvailableStatus(authType, authTrustLevel, status); in GetAvailableStatus()
239 int32_t accountId, AuthType authType, cons in GetEnrolledId()
159 GetCredentialInfo( int32_t userId, AuthType authType, const sptr<IGetCredInfoCallback> &callback) GetCredentialInfo() argument
238 GetEnrolledId( int32_t accountId, AuthType authType, const sptr<IGetEnrolledIdCallback> &callback) GetEnrolledId() argument
[all...]
H A Daccount_iam_mgr_stub.cpp242 ErrCode AccountIAMMgrStub::ReadUserIdAndAuthType(MessageParcel &data, int32_t &userId, int32_t &authType) in ReadUserIdAndAuthType() argument
248 if (!data.ReadInt32(authType)) { in ReadUserIdAndAuthType()
249 ACCOUNT_LOGE("failed to read authType"); in ReadUserIdAndAuthType()
261 int32_t authType; in AddOrUpdateCredential() local
262 ErrCode ret = ReadUserIdAndAuthType(data, userId, authType); in AddOrUpdateCredential()
281 credParams.authType = static_cast<AuthType>(authType); in AddOrUpdateCredential()
378 int32_t authType; in ProcGetCredentialInfo() local
379 ErrCode ret = ReadUserIdAndAuthType(data, userId, authType); in ProcGetCredentialInfo()
388 int result = GetCredentialInfo(userId, static_cast<AuthType>(authType), callbac in ProcGetCredentialInfo()
431 int32_t authType; ReadAuthParam() local
558 int32_t authType; ProcGetAvailableStatus() local
591 int32_t authType; ProcGetProperty() local
620 int32_t authType; ProcSetProperty() local
663 int32_t authType; ProcGetEnrolledId() local
[all...]
/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 &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);
/base/account/os_account/services/accountmgr/include/appaccount/
H A Dapp_account_manager_service.h33 const std::string &owner, const std::string &authType, const AAFwk::Want &options,
61 ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authType,
64 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) override;
66 const std::string &name, const std::string &owner, const std::string &authType, std::string &token) override;
68 const std::string &name, const std::string &authType, const std::string &token) override;
70 const std::string &authType, const std::string &token) override;
72 const std::string &authType, const std::string &token) override;
73 ErrCode SetOAuthTokenVisibility(const std::string &name, const std::string &authType,
75 ErrCode SetAuthTokenVisibility(const std::string &name, const std::string &authType,
77 ErrCode CheckOAuthTokenVisibility(const std::string &name, const std::string &authType,
[all...]
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
H A Duser_auth_impl.cpp65 AuthType authType = AuthType(type); in GetAvailableStatus() local
67 ResultCode checkRet = CheckAuthTypeAndAuthTrustLevel(authType, authTrustLevel); in GetAvailableStatus()
73 int32_t status = UserAuthClientImpl::Instance().GetNorthAvailableStatus(API_VERSION_8, authType, authTrustLevel); in GetAvailableStatus()
108 AuthType authType; in Execute() local
110 NAPI_CALL(env, ParseExecuteAuthType(env, argv[PARAM0], authType, resultCode)); in Execute()
132 AuthType &authType, ResultCode &resultCode) in ParseExecuteAuthType()
202 int32_t authType; in Auth() local
203 NAPI_CALL(env, UserAuthNapiHelper::GetInt32Value(env, argv[PARAM1], authType)); in Auth()
218 ResultCode checkRet = CheckAuthTypeAndAuthTrustLevel(AuthType(authType), AuthTrustLevel(authTrustLevel)); in Auth()
227 AuthType(authType), AuthTrustLeve in Auth()
131 ParseExecuteAuthType(napi_env env, napi_value value, AuthType &authType, ResultCode &resultCode) ParseExecuteAuthType() argument
264 CheckAuthTypeAndAuthTrustLevel(AuthType authType, AuthTrustLevel authTrustLevel) CheckAuthTypeAndAuthTrustLevel() argument
[all...]

Completed in 13 milliseconds

12345678910>>...13