Home
last modified time | relevance | path

Searched refs:credentialType (Results 1 – 25 of 42) sorted by relevance

12

/base/security/device_auth/services/authenticators/src/account_related/
Daccount_version_util.c69 static const AccountVersionInfo *NegotiateForAuth(int32_t credentialType) in NegotiateForAuth() argument
72 if (credentialType == SYMMETRIC_CRED) { in NegotiateForAuth()
74 } else if (credentialType == ASYMMETRIC_CRED) { in NegotiateForAuth()
77 LOGE("Invalid credential type for auth: %d.", credentialType); in NegotiateForAuth()
95 const AccountVersionInfo *GetNegotiatedVersionInfo(int32_t operationCode, int32_t credentialType) in GetNegotiatedVersionInfo() argument
102 return NegotiateForAuth(credentialType); in GetNegotiatedVersionInfo()
Daccount_module.c223 int32_t credentialType = INVALID_CRED; in ProcessAccountCredentials() local
224 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in ProcessAccountCredentials()
228 if (credentialType == ASYMMETRIC_CRED) { in ProcessAccountCredentials()
230 } else if (credentialType == SYMMETRIC_CRED) { in ProcessAccountCredentials()
233 LOGE("Invalid credential type! [CredType]: %d", credentialType); in ProcessAccountCredentials()
Daccount_task_main.c151 int32_t credentialType = INVALID_CRED; in NegotiateAndCreateSubTask() local
156 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &credentialType) != CLIB_SUCCESS) { in NegotiateAndCreateSubTask()
160 const AccountVersionInfo *verInfo = GetNegotiatedVersionInfo(operationCode, credentialType); in NegotiateAndCreateSubTask()
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_manager.cpp98 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument
100 …return DelayedSingleton<AppAccount>::GetInstance()->GetAccountCredential(name, credentialType, cre… in GetAccountCredential()
104 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument
106 …return DelayedSingleton<AppAccount>::GetInstance()->SetAccountCredential(name, credentialType, cre… in SetAccountCredential()
222 …AccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
224 … return DelayedSingleton<AppAccount>::GetInstance()->DeleteAccountCredential(name, credentialType); in DeleteAccountCredential()
Dapp_account.cpp198 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument
201 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in GetAccountCredential()
204 return appAccountProxy_->GetAccountCredential(name, credentialType, credential); in GetAccountCredential()
208 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument
211 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in SetAccountCredential()
215 return appAccountProxy_->SetAccountCredential(name, credentialType, credential); in SetAccountCredential()
400 …ode AppAccount::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
403 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in DeleteAccountCredential()
406 return appAccountProxy_->DeleteAccountCredential(name, credentialType); in DeleteAccountCredential()
436 … options.credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, "the credential type is oversize"); in VerifyCredential()
Dapp_account_info.cpp239 ErrCode AppAccountInfo::GetAccountCredential(const std::string &credentialType, std::string &creden… in GetAccountCredential() argument
246 if (jsonObject.find(credentialType) == jsonObject.end()) { in GetAccountCredential()
247 ACCOUNT_LOGE("failed to find value, credentialType = %{public}s", credentialType.c_str()); in GetAccountCredential()
251 credential = jsonObject.at(credentialType); in GetAccountCredential()
256 const std::string &credentialType, const std::string &credential, bool isDelete) in SetAccountCredential() argument
265 auto ret = jsonObject.erase(credentialType); in SetAccountCredential()
270 jsonObject[credentialType] = credential; in SetAccountCredential()
Dapp_account_common.cpp82 …return parcel.WriteString(credentialType) && parcel.WriteString(credential) && parcel.WriteParcela… in Marshalling()
98 if ((!parcel.ReadString(credentialType)) || (!parcel.ReadString(credential))) { in ReadFromParcel()
/base/security/device_auth/services/authenticators/inc/account_related/
Daccount_version_util.h63 const AccountVersionInfo *GetNegotiatedVersionInfo(int32_t operationCode, int32_t credentialType);
/base/security/device_auth/services/authenticators/inc/account_related/auth/iso_auth_task/
Diso_auth_task_common.h28 int32_t credentialType; member
/base/account/os_account/services/accountmgr/include/appaccount/
Dinner_app_account_manager.h62 …ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::stri…
64 ErrCode SetAccountCredential(const std::string &name, const std::string &credentialType,
66 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType,
Dapp_account_manager_service.h56 … const std::string &name, const std::string &credentialType, std::string &credential) override;
58 …const std::string &name, const std::string &credentialType, const std::string &credential) overrid…
59 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
Dapp_account_control_manager.h74 …ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::stri…
76 ErrCode SetAccountCredential(const std::string &name, const std::string &credentialType,
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
Dapp_account_manager.h51 const std::string &name, const std::string &credentialType, std::string &credential);
53 const std::string &name, const std::string &credentialType, const std::string &credential);
88 …static ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
/base/account/os_account/test/fuzztest/appaccount/verifycredential_fuzzer/
Dverifycredential_fuzzer.cpp56 options.credentialType = testValue; in VerifyCredentialFuzzTest()
/base/account/os_account/services/accountmgr/test/mock/app_account/
Dmock_app_account_stub.h50 … const std::string &name, const std::string &credentialType, std::string &credential) override;
52 …const std::string &name, const std::string &credentialType, const std::string &credential) overrid…
88 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
Dmock_app_account_stub.cpp162 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument
170 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument
326 …AppAccountStub::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account.h56 …ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::stri…
58 const std::string &name, const std::string &credentialType, const std::string &credential);
92 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
Diapp_account.h55 const std::string &name, const std::string &credentialType, std::string &credential) = 0;
57 … const std::string &name, const std::string &credentialType, const std::string &credential) = 0;
58 …al ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) = 0;
Dapp_account_proxy.h53 … const std::string &name, const std::string &credentialType, std::string &credential) override;
55 …const std::string &name, const std::string &credentialType, const std::string &credential) overrid…
56 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
Dapp_account_info.h70 ErrCode GetAccountCredential(const std::string &credentialType, std::string &credential) const;
72 const std::string &credentialType, const std::string &credential, bool isDelete = false);
/base/security/device_auth/services/authenticators/inc/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.h30 int32_t credentialType; member
/base/account/os_account/services/accountmgr/src/appaccount/
Dinner_app_account_manager.cpp259 …AppAccountManager::GetAccountCredential(const std::string &name, const std::string &credentialType, in GetAccountCredential() argument
267 …ErrCode result = controlManagerPtr_->GetAccountCredential(name, credentialType, credential, appAcc… in GetAccountCredential()
272 …AppAccountManager::SetAccountCredential(const std::string &name, const std::string &credentialType, in SetAccountCredential() argument
281 … controlManagerPtr_->SetAccountCredential(name, credentialType, credential, appAccountCallingInfo); in SetAccountCredential()
296 …AccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType, in DeleteAccountCredential() argument
307 …ErrCode result = controlManagerPtr_->SetAccountCredential(name, credentialType, "", appAccountCall… in DeleteAccountCredential()
Dapp_account_stub.cpp538 std::string credentialType = data.ReadString(); in ProcGetAccountCredential() local
539 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in ProcGetAccountCredential()
542 ErrCode result = GetAccountCredential(name, credentialType, credential); in ProcGetAccountCredential()
558 std::string credentialType = data.ReadString(); in ProcSetAccountCredential() local
559 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in ProcSetAccountCredential()
563 ErrCode result = SetAccountCredential(name, credentialType, credential); in ProcSetAccountCredential()
865 std::string credentialType = data.ReadString(); in ProcDeleteAccountCredential() local
866 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in ProcDeleteAccountCredential()
868 ErrCode result = DeleteAccountCredential(name, credentialType); in ProcDeleteAccountCredential()
914 … options->credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, "the credential type is oversize"); in ProcVerifyCredential()
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/
Diso_auth_task_common.c126 if (((uint32_t)params->credentialType & SYMMETRIC_CRED) == SYMMETRIC_CRED) { in SetChallenge()
140 LOGE("Invalid credentialType: %d", params->credentialType); in SetChallenge()
223 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &params->credentialType) != CLIB_SUCCESS) { in InitIsoAuthParams()
405 if (AddIntToJson(sendToSelf, FIELD_CREDENTIAL_TYPE, params->credentialType) != CLIB_SUCCESS) { in AuthIsoSendFinalToOut()
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_common_test.cpp87 option1.credentialType = "test1";
94 EXPECT_EQ(option2->credentialType, "test1");

12