Home
last modified time | relevance | path

Searched refs:credentialType (Results 1 – 25 of 46) 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()
92 const AccountVersionInfo *GetNegotiatedVersionInfo(int32_t operationCode, int32_t credentialType) in GetNegotiatedVersionInfo() argument
99 return NegotiateForAuth(credentialType); in GetNegotiatedVersionInfo()
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/security/device_auth/services/cred_manager/src/account_related/
Daccount_related_cred_plugin.c90 int32_t credentialType = INVALID_CRED; in ProcessAccountCredentials() local
91 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in ProcessAccountCredentials()
95 if (credentialType == ASYMMETRIC_CRED) { in ProcessAccountCredentials()
97 } else if (credentialType == SYMMETRIC_CRED) { in ProcessAccountCredentials()
100 LOGE("Invalid credential type! [CredType]: %d", credentialType); in ProcessAccountCredentials()
/base/account/os_account/test/fuzztest/appaccount_stub/getaccountcredentialstub_fuzzer/
Dgetaccountcredentialstub_fuzzer.cpp41 std::string credentialType(reinterpret_cast<const char*>(data), size); in GetAccountCredentialStubFuzzTest()
42 if (!dataTemp.WriteString(credentialType)) { in GetAccountCredentialStubFuzzTest()
/base/account/os_account/test/fuzztest/appaccount_stub/deleteaccountcredentialstub_fuzzer/
Ddeleteaccountcredentialstub_fuzzer.cpp42 std::string credentialType(reinterpret_cast<const char*>(data), size); in DeleteAccountCredentialStubFuzzTest()
43 if (!dataTemp.WriteString(credentialType)) { in DeleteAccountCredentialStubFuzzTest()
/base/account/os_account/test/fuzztest/appaccount_stub/setaccountcredentialstub_fuzzer/
Dsetaccountcredentialstub_fuzzer.cpp42 std::string credentialType(reinterpret_cast<const char*>(data), size); in SetAccountCredentialStubFuzzTest()
43 if (!dataTemp.WriteString(credentialType)) { in SetAccountCredentialStubFuzzTest()
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_manager.cpp97 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument
99 return AppAccount::GetInstance().GetAccountCredential(name, credentialType, credential); in GetAccountCredential()
103 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument
105 return AppAccount::GetInstance().SetAccountCredential(name, credentialType, credential); in SetAccountCredential()
221 …AccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
223 return AppAccount::GetInstance().DeleteAccountCredential(name, credentialType); in DeleteAccountCredential()
Dapp_account.cpp196 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument
199 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in GetAccountCredential()
202 return appAccountProxy_->GetAccountCredential(name, credentialType, credential); in GetAccountCredential()
206 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument
209 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in SetAccountCredential()
213 return appAccountProxy_->SetAccountCredential(name, credentialType, credential); in SetAccountCredential()
394 …ode AppAccount::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
397 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in DeleteAccountCredential()
400 return appAccountProxy_->DeleteAccountCredential(name, credentialType); in DeleteAccountCredential()
422 … options.credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, "the credential type is oversize"); in VerifyCredential()
Dapp_account_info.cpp240 ErrCode AppAccountInfo::GetAccountCredential(const std::string &credentialType, std::string &creden… in GetAccountCredential() argument
247 if (jsonObject.find(credentialType) == jsonObject.end()) { in GetAccountCredential()
248 ACCOUNT_LOGE("failed to find value, credentialType = %{public}s", credentialType.c_str()); in GetAccountCredential()
252 credential = jsonObject.at(credentialType); in GetAccountCredential()
257 const std::string &credentialType, const std::string &credential, bool isDelete) in SetAccountCredential() argument
266 auto ret = jsonObject.erase(credentialType); in SetAccountCredential()
271 jsonObject[credentialType] = credential; in SetAccountCredential()
/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/test/fuzztest/appaccount/verifycredential_fuzzer/
Dverifycredential_fuzzer.cpp56 options.credentialType = testValue; in VerifyCredentialFuzzTest()
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
Dapp_account_manager.h210 const std::string &name, const std::string &credentialType, std::string &credential);
220 const std::string &name, const std::string &credentialType, const std::string &credential);
466 …static ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
/base/account/os_account/services/accountmgr/include/appaccount/
Dinner_app_account_manager.h63 …ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::stri…
65 ErrCode SetAccountCredential(const std::string &name, const std::string &credentialType,
67 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…
/base/account/os_account/services/accountmgr/src/appaccount/
Dinner_app_account_manager.cpp164 …AppAccountManager::GetAccountCredential(const std::string &name, const std::string &credentialType, in GetAccountCredential() argument
167 …return controlManager_.GetAccountCredential(name, credentialType, credential, appAccountCallingInf… in GetAccountCredential()
170 …AppAccountManager::SetAccountCredential(const std::string &name, const std::string &credentialType, in SetAccountCredential() argument
173 …ErrCode result = controlManager_.SetAccountCredential(name, credentialType, credential, appAccount… in SetAccountCredential()
186 …AccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType, in DeleteAccountCredential() argument
193 …ErrCode result = controlManager_.SetAccountCredential(name, credentialType, "", appAccountCallingI… in DeleteAccountCredential()
/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/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
327 …AppAccountStub::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument
/base/account/os_account/frameworks/appaccount/native/include/
Diapp_account.h56 const std::string &name, const std::string &credentialType, std::string &credential) = 0;
58 … const std::string &name, const std::string &credentialType, const std::string &credential) = 0;
59 …al ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) = 0;
Dapp_account.h57 …ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::stri…
59 const std::string &name, const std::string &credentialType, const std::string &credential);
93 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
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/account/os_account/test/fuzztest/appaccount_stub/verifycredentialstub_fuzzer/
Dverifycredentialstub_fuzzer.cpp46 options.credentialType = testValue; in VerifyCredentialStubFuzzTest()
/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()

12