/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
H A D | user_auth_impl.cpp | 66 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 D | auth_instance_v9.cpp | 70 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 D | user_auth_client_impl.cpp | 82 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 D | user_auth_ffi.cpp | 23 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 D | user_auth_service.h | 43 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 D | getavailablestatus_fuzzer.cpp | 32 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 D | user_auth_service.cpp | 112 << " 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 D | user_auth_proxy.h | 32 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 D | user_auth_impl.h | 41 AuthTrustLevel &authTrustLevel, ResultCode &resultCode); 42 static ResultCode CheckAuthTypeAndAuthTrustLevel(AuthType authType, AuthTrustLevel authTrustLevel);
|
/base/account/os_account/test/fuzztest/iamaccount/authuser_fuzzer/ |
H A D | authuser_fuzzer.cpp | 47 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 D | auth_fuzzer.cpp | 45 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 D | getavailablestatusstub_fuzzer.cpp | 65 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 D | user_auth_interface.h | 37 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 D | mock_user_auth_service.h | 30 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 D | user_auth_proxy.cpp | 37 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 D | user_auth_stub.cpp | 94 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 D | authuserstub_fuzzer.cpp | 56 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 D | user_auth_client_defines.h | 60 AuthTrustLevel authTrustLevel; member 126 AuthTrustLevel authTrustLevel; member
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | account_iam_service.cpp | 196 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 D | user_auth_icon.js | 38 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 D | user_auth_service_fuzzer.cpp | 158 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 D | account_iam_client.h | 151 * @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 D | user_auth_client_impl.h | 34 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 D | remote_msg_util.cpp | 232 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 D | account_iam_client.cpp | 213 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...] |