/base/security/device_auth/services/legacy/authenticators/src/account_related/ |
H A D | account_version_util.c | 68 static const AccountVersionInfo *NegotiateForAuth(int32_t credentialType) in NegotiateForAuth() argument 71 if (credentialType == SYMMETRIC_CRED) { in NegotiateForAuth() 73 } else if (credentialType == ASYMMETRIC_CRED) { in NegotiateForAuth() 76 LOGE("Invalid credential type for auth: %d.", credentialType); in NegotiateForAuth() 91 const AccountVersionInfo *GetNegotiatedVersionInfo(int32_t operationCode, int32_t credentialType) in GetNegotiatedVersionInfo() argument 98 return NegotiateForAuth(credentialType); in GetNegotiatedVersionInfo()
|
H A D | account_task_main.c | 151 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/ |
H A D | account_related_cred_plugin.c | 91 int32_t credentialType = INVALID_CRED; in ProcessAccountCredentials() local 92 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in ProcessAccountCredentials() 93 LOGE("Failed to get credentialType from json!"); in ProcessAccountCredentials() 96 if (credentialType == ASYMMETRIC_CRED) { in ProcessAccountCredentials() 98 } else if (credentialType == SYMMETRIC_CRED) { in ProcessAccountCredentials() 101 LOGE("Invalid credential type! [CredType]: %d", credentialType); in ProcessAccountCredentials()
|
/base/account/os_account/test/fuzztest/appaccount_stub/getaccountcredentialstub_fuzzer/ |
H A D | getaccountcredentialstub_fuzzer.cpp | 35 std::string credentialType = fuzzData.GenerateRandomString(); in GetAccountCredentialStubFuzzTest() local 44 if (!dataTemp.WriteString(credentialType)) { in GetAccountCredentialStubFuzzTest()
|
/base/account/os_account/test/fuzztest/appaccount_stub/setaccountcredentialstub_fuzzer/ |
H A D | setaccountcredentialstub_fuzzer.cpp | 37 std::string credentialType = fuzzData.GenerateRandomString(); in SetAccountCredentialStubFuzzTest() local 46 if (!dataTemp.WriteString(credentialType)) { in SetAccountCredentialStubFuzzTest()
|
/base/account/os_account/test/fuzztest/appaccount_stub/deleteaccountcredentialstub_fuzzer/ |
H A D | deleteaccountcredentialstub_fuzzer.cpp | 36 std::string credentialType = fuzzData.GenerateRandomString(); in DeleteAccountCredentialStubFuzzTest() local 45 if (!dataTemp.WriteString(credentialType)) { in DeleteAccountCredentialStubFuzzTest()
|
/base/account/os_account/frameworks/appaccount/cj/include/ |
H A D | appaccount_ffi.h | 51 int id, char *name, char *credentialType, char *credential); 53 FFI_EXPORT RetDataCString FfiAppAccountAppAccountManagerGetCredential(int id, char *name, char *credentialType); 66 FFI_EXPORT int32_t FfiAppAccountAppAccountManagerDeleteCredential(int id, char *name, char *credentialType);
|
H A D | appaccount_impl.h | 42 int32_t setCredential(std::string name, std::string credentialType, std::string credential); 46 RetDataCString getCredential(std::string name, std::string credentialType); 56 int32_t deleteCredential(std::string name, std::string credentialType);
|
/base/account/os_account/frameworks/appaccount/cj/src/ |
H A D | appaccount_ffi.cpp | 82 int32_t FfiAppAccountAppAccountManagerSetCredential(int id, char *name, char *credentialType, char *credential) in FfiAppAccountAppAccountManagerSetCredential() argument 88 return instance->setCredential(name, credentialType, credential); in FfiAppAccountAppAccountManagerSetCredential() 102 RetDataCString FfiAppAccountAppAccountManagerGetCredential(int id, char *name, char *credentialType) in FfiAppAccountAppAccountManagerGetCredential() argument 109 return instance->getCredential(name, credentialType); in FfiAppAccountAppAccountManagerGetCredential() 202 int32_t FfiAppAccountAppAccountManagerDeleteCredential(int id, char *name, char *credentialType) in FfiAppAccountAppAccountManagerDeleteCredential() argument 208 return instance->deleteCredential(name, credentialType); in FfiAppAccountAppAccountManagerDeleteCredential()
|
/base/security/device_auth/services/legacy/authenticators/inc/account_related/ |
H A D | account_version_util.h | 63 const AccountVersionInfo *GetNegotiatedVersionInfo(int32_t operationCode, int32_t credentialType);
|
/base/account/os_account/frameworks/appaccount/native/src/ |
H A D | app_account_info.cpp | 275 ErrCode AppAccountInfo::GetAccountCredential(const std::string &credentialType, std::string &credential) const in GetAccountCredential() argument 282 if (jsonObject.find(credentialType) == jsonObject.end()) { in GetAccountCredential() 283 ACCOUNT_LOGE("failed to find value, credentialType = %{public}s", credentialType.c_str()); in GetAccountCredential() 287 credential = jsonObject.at(credentialType); in GetAccountCredential() 292 const std::string &credentialType, const std::string &credential) in SetAccountCredential() 305 jsonObject[credentialType] = credential; in SetAccountCredential() 307 auto it = jsonObject.find(credentialType); in SetAccountCredential() 310 ComputeHash(credentialType, credentialTypeAlias); in SetAccountCredential() 311 jsonObject[credentialType] in SetAccountCredential() 291 SetAccountCredential( const std::string &credentialType, const std::string &credential) SetAccountCredential() argument 326 DeleteAccountCredential(const std::string &credentialType) DeleteAccountCredential() argument [all...] |
H A D | app_account_manager.cpp | 97 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() 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() 105 return AppAccount::GetInstance().SetAccountCredential(name, credentialType, credential); in SetAccountCredential() 221 ErrCode AppAccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument 223 return AppAccount::GetInstance().DeleteAccountCredential(name, credentialType); in DeleteAccountCredential() 96 GetAccountCredential( const std::string &name, const std::string &credentialType, std::string &credential) GetAccountCredential() argument 102 SetAccountCredential( const std::string &name, const std::string &credentialType, const std::string &credential) SetAccountCredential() argument
|
H A D | app_account.cpp | 227 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() 230 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in GetAccountCredential() 231 "credentialType is empty or oversize"); in GetAccountCredential() 236 return proxy->GetAccountCredential(name, credentialType, credential); in GetAccountCredential() 240 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() 243 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in SetAccountCredential() 244 "credentialType is empty or oversize"); in SetAccountCredential() 250 return proxy->SetAccountCredential(name, credentialType, credential); in SetAccountCredential() 484 ErrCode AppAccount::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument 487 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constant in DeleteAccountCredential() 226 GetAccountCredential( const std::string &name, const std::string &credentialType, std::string &credential) GetAccountCredential() argument 239 SetAccountCredential( const std::string &name, const std::string &credentialType, const std::string &credential) SetAccountCredential() argument [all...] |
/base/security/device_auth/services/legacy/authenticators/inc/account_related/auth/iso_auth_task/ |
H A D | iso_auth_task_common.h | 28 int32_t credentialType; member
|
/base/account/os_account/services/accountmgr/include/appaccount/ |
H A D | inner_app_account_manager.h | 64 ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::string &credential, 66 ErrCode SetAccountCredential(const std::string &name, const std::string &credentialType, 68 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType,
|
H A D | app_account_control_manager.h | 70 ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::string &credential, 72 ErrCode SetAccountCredential(const std::string &name, const std::string &credentialType, 74 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType,
|
H A D | app_account_manager_service.h | 56 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) override; 59 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) override;
|
/base/account/os_account/frameworks/appaccount/native/include/ |
H A D | app_account_info.h | 72 ErrCode GetAccountCredential(const std::string &credentialType, std::string &credential) const; 73 ErrCode SetAccountCredential(const std::string &credentialType, const std::string &credential); 74 ErrCode DeleteAccountCredential(const std::string &credentialType);
|
H A D | app_account.h | 57 ErrCode GetAccountCredential(const std::string &name, const std::string &credentialType, std::string &credential); 59 const std::string &name, const std::string &credentialType, const std::string &credential); 93 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
|
/base/account/os_account/interfaces/innerkits/appaccount/native/include/ |
H A D | app_account_manager.h | 205 * @param credentialType - Indicates the type of the credential to obtain. 210 const std::string &name, const std::string &credentialType, std::string &credential); 215 * @param credentialType - Indicates the type of the credential to set. 220 const std::string &name, const std::string &credentialType, const std::string &credential); 463 * @param credentialType - Indicates the type of the credential to delete. 466 static ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType);
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | inner_app_account_manager.cpp | 165 ErrCode InnerAppAccountManager::GetAccountCredential(const std::string &name, const std::string &credentialType, in GetAccountCredential() argument 168 return controlManager_.GetAccountCredential(name, credentialType, credential, appAccountCallingInfo); in GetAccountCredential() 171 ErrCode InnerAppAccountManager::SetAccountCredential(const std::string &name, const std::string &credentialType, in SetAccountCredential() argument 174 ErrCode result = controlManager_.SetAccountCredential(name, credentialType, credential, appAccountCallingInfo); in SetAccountCredential() 187 ErrCode InnerAppAccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType, in DeleteAccountCredential() argument 194 ErrCode result = controlManager_.DeleteAccountCredential(name, credentialType, appAccountCallingInfo); in DeleteAccountCredential()
|
/base/account/os_account/test/fuzztest/appaccount/verifycredential_fuzzer/ |
H A D | verifycredential_fuzzer.cpp | 58 options.credentialType = testValue; in VerifyCredentialFuzzTest()
|
/base/security/device_auth/services/legacy/authenticators/inc/account_related/auth/pake_v2_auth_task/ |
H A D | pake_v2_auth_task_common.h | 30 int32_t credentialType; member
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
H A D | mock_app_account_stub.cpp | 162 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() 170 const std::string &name, const std::string &credentialType, const std::string &credential) in SetAccountCredential() 327 ErrCode MockAppAccountStub::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument 161 GetAccountCredential( const std::string &name, const std::string &credentialType, std::string &credential) GetAccountCredential() argument 169 SetAccountCredential( const std::string &name, const std::string &credentialType, const std::string &credential) SetAccountCredential() argument
|
H A D | mock_app_account_stub.h | 50 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) override; 88 ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) override;
|