Home
last modified time | relevance | path

Searched refs:authTrustLevel (Results 1 - 25 of 59) sorted by relevance

123

/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
H A Duser_auth_impl.cpp66 AuthTrustLevel authTrustLevel = AuthTrustLevel(level); 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()
117 AuthTrustLevel authTrustLevel; in Execute() local
118 NAPI_CALL(env, ParseExecuteSecureLevel(env, argv[PARAM1], authTrustLevel, resultCode)); in Execute()
127 UserAuthClientImpl::Instance().BeginNorthAuthentication(API_VERSION_6, challenge, FACE, authTrustLevel, callback); in Execute()
160 AuthTrustLevel &authTrustLevel, ResultCode &resultCode) in ParseExecuteSecureLevel()
182 authTrustLevel = convertAuthTrustLevel[str]; in ParseExecuteSecureLevel()
204 int32_t authTrustLevel; in Auth() local
205 NAPI_CALL(env, UserAuthNapiHelper::GetInt32Value(env, argv[PARAM2], authTrustLevel)); in Auth()
159 ParseExecuteSecureLevel(napi_env env, napi_value value, AuthTrustLevel &authTrustLevel, ResultCode &resultCode) ParseExecuteSecureLevel() argument
264 CheckAuthTypeAndAuthTrustLevel(AuthType authType, AuthTrustLevel authTrustLevel) CheckAuthTypeAndAuthTrustLevel() argument
[all...]
H A Dauth_instance_v9.cpp70 AuthTrustLevel authTrustLevel = AuthTrustLevel(level); in GetAvailableStatus() local
71 int32_t status = UserAuthClientImpl::Instance().GetNorthAvailableStatus(API_VERSION_9, authType, authTrustLevel); in GetAvailableStatus()
136 uint32_t authTrustLevel; in Init() local
137 ret = UserAuthNapiHelper::GetUint32Value(env, argv[PARAM2], authTrustLevel); in Init()
142 if (!UserAuthNapiHelper::CheckAuthTrustLevel(authTrustLevel)) { in Init()
146 authTrustLevel_ = AuthTrustLevel(authTrustLevel); in Init()
/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()
94 AuthTrustLevel authTrustLevel) in GetNorthAvailableStatus()
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:%{public}d authTrustLevel in GetAvailableStatus()
93 GetNorthAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) GetNorthAvailableStatus() argument
[all...]
/base/useriam/user_auth_framework/frameworks/cj/user_auth/src/
H A Duser_auth_ffi.cpp23 int32_t FfiUserAuthGetAvailableStatus(const uint32_t authType, const uint32_t authTrustLevel) in FfiUserAuthGetAvailableStatus() argument
27 AuthTrustLevel(authTrustLevel)); in FfiUserAuthGetAvailableStatus()
57 .authTrustLevel = AuthTrustLevel(authParam.authTrustLevel), in FfiUserAuthStart()
/base/useriam/user_auth_framework/services/ipc/inc/
H A Duser_auth_service.h43 AuthTrustLevel authTrustLevel) override;
44 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) override;
53 AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) override;
75 const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel,
79 bool CheckAuthTrustLevel(AuthTrustLevel authTrustLevel);
97 AuthTrustLevel authTrustLevel);
98 bool CheckAuthPermissionAndParam(AuthType authType, AuthTrustLevel authTrustLevel,
111 AuthTrustLevel authTrustLevel);
/base/account/os_account/test/fuzztest/iamaccount/getavailablestatus_fuzzer/
H A Dgetavailablestatus_fuzzer.cpp32 AuthTrustLevel authTrustLevel = fuzzData.GenerateRandomEnmu(UserIam::UserAuth::ATL4); in GetAvailableStatusFuzzTest() local
34 int32_t result = AccountIAMClient::GetInstance().GetAvailableStatus(authType, authTrustLevel, status); in GetAvailableStatusFuzzTest()
/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp112 << " atl:" << authParam.authTrustLevel; in GetAuthParamStr()
171 bool UserAuthService::CheckAuthTrustLevel(AuthTrustLevel authTrustLevel) in CheckAuthTrustLevel() argument
173 if ((authTrustLevel != ATL1) && (authTrustLevel != ATL2) && in CheckAuthTrustLevel()
174 (authTrustLevel != ATL3) && (authTrustLevel != ATL4)) { in CheckAuthTrustLevel()
175 IAM_LOGE("authTrustLevel not support %{public}u", authTrustLevel); in CheckAuthTrustLevel()
182 AuthTrustLevel authTrustLevel) in GetAvailableStatus()
190 return GetAvailableStatusInner(apiVersion, userId, authType, authTrustLevel); in GetAvailableStatus()
181 GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType, AuthTrustLevel authTrustLevel) GetAvailableStatus() argument
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
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
[all...]
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
H A Duser_auth_proxy.h32 AuthTrustLevel authTrustLevel) override;
33 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) override;
42 AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) override;
69 int32_t GetAvailableStatusInner(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel,
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
H A Duser_auth_impl.h41 AuthTrustLevel &authTrustLevel, ResultCode &resultCode);
42 static ResultCode CheckAuthTypeAndAuthTrustLevel(AuthType authType, AuthTrustLevel authTrustLevel);
/base/account/os_account/test/fuzztest/iamaccount/authuser_fuzzer/
H A Dauthuser_fuzzer.cpp47 AuthTrustLevel authTrustLevel = fuzzData.GenerateRandomEnmu(UserIam::UserAuth::ATL4); in AuthUserFuzzTest() local
52 authOptions, challenge, authType, authTrustLevel, callback); in AuthUserFuzzTest()
/base/account/os_account/test/fuzztest/iamaccount/auth_fuzzer/
H A Dauth_fuzzer.cpp45 AuthTrustLevel authTrustLevel = fuzzData.GenerateRandomEnmu(UserIam::UserAuth::ATL4); in AuthFuzzTest() local
49 challenge, authType, authTrustLevel, callback); in AuthFuzzTest()
/base/account/os_account/test/fuzztest/iamaccount_stub/getavailablestatusstub_fuzzer/
H A Dgetavailablestatusstub_fuzzer.cpp65 AuthTrustLevel authTrustLevel = fuzzData.GenerateRandomEnmu(AuthTrustLevel::ATL4); in GetAvailableStatusStubFuzzTest() local
73 if (!dataTemp.WriteUint32(authTrustLevel)) { in GetAvailableStatusStubFuzzTest()
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
H A Duser_auth_interface.h37 AuthTrustLevel authTrustLevel) = 0;
39 virtual int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) = 0;
51 AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) = 0;
/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_user_auth_service.h30 AuthTrustLevel authTrustLevel));
32 int32_t GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) in GetAvailableStatus() argument
49 AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback));
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
H A Duser_auth_proxy.cpp37 AuthTrustLevel authTrustLevel) in GetAvailableStatus()
53 return GetAvailableStatusInner(apiVersion, authType, authTrustLevel, data); in GetAvailableStatus()
56 int32_t UserAuthProxy::GetAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel) in GetAvailableStatus() argument
68 return GetAvailableStatusInner(apiVersion, authType, authTrustLevel, data); in GetAvailableStatus()
71 int32_t UserAuthProxy::GetAvailableStatusInner(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel, in GetAvailableStatusInner() argument
78 if (!data.WriteUint32(authTrustLevel)) { in GetAvailableStatusInner()
79 IAM_LOGE("failed to write authTrustLevel"); in GetAvailableStatusInner()
215 if (!data.WriteUint32(authParam.authTrustLevel)) { in WriteAuthParam()
216 IAM_LOGE("failed to write authTrustLevel"); in WriteAuthParam()
290 AuthTrustLevel authTrustLevel, spt in Auth()
36 GetAvailableStatus(int32_t apiVersion, int32_t userId, AuthType authType, AuthTrustLevel authTrustLevel) GetAvailableStatus() argument
289 Auth(int32_t apiVersion, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, sptr<UserAuthCallbackInterface> &callback) Auth() argument
[all...]
H A Duser_auth_stub.cpp94 uint32_t authTrustLevel; in GetAvailableStatusStub() local
110 if (!data.ReadUint32(authTrustLevel)) { in GetAvailableStatusStub()
111 IAM_LOGE("failed to read authTrustLevel"); in GetAvailableStatusStub()
122 static_cast<AuthTrustLevel>(authTrustLevel)); in GetAvailableStatusStub()
125 static_cast<AuthTrustLevel>(authTrustLevel)); in GetAvailableStatusStub()
251 uint64_t contextId = Auth(apiVersion, authParam.challenge, authParam.authType, authParam.authTrustLevel, in AuthStub()
325 uint32_t authTrustLevel; in ReadWidgetAuthParam() local
326 if (!data.ReadUint32(authTrustLevel)) { in ReadWidgetAuthParam()
327 IAM_LOGE("failed to read authTrustLevel"); in ReadWidgetAuthParam()
330 authParam.authTrustLevel in ReadWidgetAuthParam()
[all...]
/base/account/os_account/test/fuzztest/iamaccount_stub/authuserstub_fuzzer/
H A Dauthuserstub_fuzzer.cpp56 AuthTrustLevel authTrustLevel = fuzzData.GenerateRandomEnmu(AuthTrustLevel::ATL4); in AuthUserStubFuzzTest() local
73 if (!dataTemp.WriteUint32(authTrustLevel)) { in AuthUserStubFuzzTest()
/base/useriam/user_auth_framework/interfaces/inner_api/
H A Duser_auth_client_defines.h60 AuthTrustLevel authTrustLevel; member
126 AuthTrustLevel authTrustLevel; member
/base/account/os_account/services/accountmgr/src/account_iam/
H A Daccount_iam_service.cpp196 int32_t AccountIAMService::GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel, int32_t &status) in GetAvailableStatus() argument
198 if (authTrustLevel < UserIam::UserAuth::ATL1 || authTrustLevel > UserIam::UserAuth::ATL4) { in GetAvailableStatus()
199 ACCOUNT_LOGE("authTrustLevel is not in correct range"); in GetAvailableStatus()
206 return InnerAccountIAMManager::GetInstance().GetAvailableStatus(authType, authTrustLevel, status); in GetAvailableStatus()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_icon/
H A Duser_auth_icon.js38 authTrustLevel: userAuth.AuthTrustLevel.ATL1
144 this.info(`check if it is supported, authType: ${r} authTrustLevel: ${s}.`);
167 if (this.authParam.authType === undefined || this.authParam.authTrustLevel === undefined) {
174 this.initImageSource(this.authParam.authType, this.authParam.authTrustLevel);
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp158 AuthTrustLevel authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()); in FuzzGetAvailableStatusOtherScene() local
160 g_userAuthService.GetAvailableStatus(apiVersion, userId, authType, authTrustLevel); in FuzzGetAvailableStatusOtherScene()
169 AuthTrustLevel authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()); in FuzzGetAvailableStatus() local
171 g_userAuthService.GetAvailableStatus(apiVersion, userId, authType, authTrustLevel); in FuzzGetAvailableStatus()
221 AuthTrustLevel authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()); in FuzzAuth() local
226 g_userAuthService.Auth(apiVersion, challenge, authType, authTrustLevel, callback); in FuzzAuth()
243 .authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()), in FuzzAuthUser()
292 authParam.authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()); in FuzzAuthWidget()
377 .authTrustLevel = static_cast<AuthTrustLevel>(parcel.ReadInt32()), in FuzzCheckValidSolution()
467 .authTrustLevel in FuzzAuthRemoteUser()
[all...]
/base/account/os_account/interfaces/innerkits/account_iam/native/include/
H A Daccount_iam_client.h151 * @param authTrustLevel - Indicates the trust level of authentication result.
156 AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback);
164 * @param authTrustLevel - Indicates the trust level of authentication result.
169 AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback);
183 * @param authTrustLevel - Indicates the trust level of authentication result.
187 int32_t GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel, int32_t &status);
/base/useriam/user_auth_framework/frameworks/native/client/inc/
H A Duser_auth_client_impl.h34 int32_t GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel);
35 int32_t GetNorthAvailableStatus(int32_t apiVersion, AuthType authType, AuthTrustLevel authTrustLevel);
36 int32_t GetAvailableStatus(int32_t userId, AuthType authType, AuthTrustLevel authTrustLevel) override;
/base/useriam/user_auth_framework/services/core/src/
H A Dremote_msg_util.cpp232 bool setAuthTrustLevelRet = attr.SetInt32Value(Attributes::ATTR_AUTH_TRUST_LEVEL, authParam.authTrustLevel); in EncodeAuthParam()
250 int32_t authTrustLevel; in DecodeAuthParam() local
251 bool getAuthTrustLevelRet = attr.GetInt32Value(Attributes::ATTR_AUTH_TRUST_LEVEL, authTrustLevel); in DecodeAuthParam()
253 authParam.authTrustLevel = static_cast<AuthTrustLevel>(authTrustLevel); in DecodeAuthParam()
/base/account/os_account/frameworks/account_iam/src/
H A Daccount_iam_client.cpp213 AuthType authType, AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback) in Auth()
215 return AuthUser(authOptions, challenge, authType, authTrustLevel, callback); in Auth()
220 AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback) in AuthUser()
244 authParam.authTrustLevel = authTrustLevel; in AuthUser()
276 int32_t AccountIAMClient::GetAvailableStatus(AuthType authType, AuthTrustLevel authTrustLevel, int32_t &status) in GetAvailableStatus() argument
282 if (authTrustLevel < UserIam::UserAuth::ATL1 || authTrustLevel > UserIam::UserAuth::ATL4) { in GetAvailableStatus()
283 ACCOUNT_LOGE("authTrustLevel is not in correct range"); in GetAvailableStatus()
290 return proxy->GetAvailableStatus(authType, authTrustLevel, statu in GetAvailableStatus()
212 Auth(AuthOptions& authOptions, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback) Auth() argument
218 AuthUser( AuthOptions &authOptions, const std::vector<uint8_t> &challenge, AuthType authType, AuthTrustLevel authTrustLevel, const std::shared_ptr<IDMCallback> &callback) AuthUser() argument
[all...]

Completed in 13 milliseconds

123