/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/ |
H A D | account_version_util.c | 69 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()
|
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()
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_credential_manager.cpp | 263 "credentialType" : 1, 352 "credentialType" : 1, 385 "credentialType" : 1, 432 "credentialType" : 0, 441 "credentialType" : 0, 490 "credentialType" : 1, 521 "credentialType" : 1, 573 "credentialType" : 1, 582 "credentialType" : 1, 614 "credentialType" : 0, [all …]
|
/ohos5.0/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() 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()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/credential/ |
H A D | dm_credential_manager.cpp | 46 int32_t credentialType; member 54 CredentialDataInfo() : credentialType(UNKNOWN_CREDENTIAL_TYPE) in CredentialDataInfo() 299 jsonCreObj[FIELD_CREDENTIAL_TYPE] = inputCreData.credentialType; in GetCredentialData() 300 int32_t credentialType = inputCreData.credentialType; in GetCredentialData() local 301 if (credentialType == NONSYMMETRY_CREDENTIAL_TYPE) { in GetCredentialData() 324 } else if (credentialType == SYMMETRY_CREDENTIAL_TYPE) { in GetCredentialData() 344 if (credentialDataInfo.credentialType == NONSYMMETRY_CREDENTIAL_TYPE) { in from_json() 355 } else if (credentialDataInfo.credentialType == SYMMETRY_CREDENTIAL_TYPE) { in from_json() 373 jsonObject[FIELD_CREDENTIAL_TYPE] = credentialDataInfo.credentialType; in to_json() 375 if (credentialDataInfo.credentialType == NONSYMMETRY_CREDENTIAL_TYPE) { in to_json() [all …]
|
/ohos5.0/base/account/os_account/frameworks/appaccount/native/src/ |
H A D | app_account_info.cpp | 282 ErrCode AppAccountInfo::GetAccountCredential(const std::string &credentialType, std::string &creden… in GetAccountCredential() argument 289 if (jsonObject.find(credentialType) == jsonObject.end()) { in GetAccountCredential() 290 ACCOUNT_LOGE("failed to find value, credentialType = %{public}s", credentialType.c_str()); in GetAccountCredential() 294 credential = jsonObject.at(credentialType); in GetAccountCredential() 299 const std::string &credentialType, const std::string &credential) in SetAccountCredential() argument 312 jsonObject[credentialType] = credential; in SetAccountCredential() 314 auto it = jsonObject.find(credentialType); in SetAccountCredential() 317 ComputeHash(credentialType, credentialTypeAlias); in SetAccountCredential() 318 jsonObject[credentialType] = GetAlias() + credentialTypeAlias; in SetAccountCredential() 333 ErrCode AppAccountInfo::DeleteAccountCredential(const std::string &credentialType) in DeleteAccountCredential() argument [all …]
|
H A D | app_account_manager.cpp | 97 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()
|
H A D | app_account.cpp | 227 const std::string &name, const std::string &credentialType, std::string &credential) in GetAccountCredential() argument 230 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, 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() argument 243 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in SetAccountCredential() 250 return proxy->SetAccountCredential(name, credentialType, credential); in SetAccountCredential() 484 …ode AppAccount::DeleteAccountCredential(const std::string &name, const std::string &credentialType) in DeleteAccountCredential() argument 487 RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, in DeleteAccountCredential() 493 return proxy->DeleteAccountCredential(name, credentialType); in DeleteAccountCredential() 518 … options.credentialType, Constants::CREDENTIAL_TYPE_MAX_SIZE, "the credential type is oversize"); in VerifyCredential()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | inner_app_account_manager.cpp | 165 …AppAccountManager::GetAccountCredential(const std::string &name, const std::string &credentialType, in GetAccountCredential() argument 168 …return controlManager_.GetAccountCredential(name, credentialType, credential, appAccountCallingInf… in GetAccountCredential() 171 …AppAccountManager::SetAccountCredential(const std::string &name, const std::string &credentialType, in SetAccountCredential() argument 174 …ErrCode result = controlManager_.SetAccountCredential(name, credentialType, credential, appAccount… in SetAccountCredential() 187 …AccountManager::DeleteAccountCredential(const std::string &name, const std::string &credentialType, in DeleteAccountCredential() argument 194 …ErrCode result = controlManager_.DeleteAccountCredential(name, credentialType, appAccountCallingIn… in DeleteAccountCredential()
|
/ohos5.0/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 | iapp_account.h | 56 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;
|
H A D | app_account.h | 57 …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);
|
H A D | app_account_proxy.h | 52 … const std::string &name, const std::string &credentialType, std::string &credential) override; 54 …const std::string &name, const std::string &credentialType, const std::string &credential) overrid… 55 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-account.md | 21 | ohos.account.appAccount | VerifyCredentialOptions | credentialType?: string, | 新增 | 29 …al(name: string, credentialType: string, callback: AsyncCallback\<void>): void;<br>deleteAccountCr…
|
/ohos5.0/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::stri… 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::stri… 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) overrid… 59 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/account/ |
H A D | manage-application-account.md | 72 let credentialType: string = 'PIN_SIX'; 79 appAccountManager.getCredential(name, credentialType).then((data: string) => { 89 appAccountManager.setCredential(name, credentialType, credential).then(() => {
|
/ohos5.0/base/account/os_account/interfaces/innerkits/appaccount/native/include/ |
H A D | app_account_manager.h | 210 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);
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-account.md | 21 | ohos.account.appAccount | VerifyCredentialOptions | credentialType?: string, | Added| 29 …al(name: string, credentialType: string, callback: AsyncCallback\<void>): void;<br>deleteAccountCr…
|
/ohos5.0/base/account/os_account/services/accountmgr/test/mock/app_account/ |
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) overrid… 88 …ErrCode DeleteAccountCredential(const std::string &name, const std::string &credentialType) overri…
|
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/iso_auth_task/ |
H A D | iso_auth_task_common.c | 124 if (((uint32_t)params->credentialType & SYMMETRIC_CRED) == SYMMETRIC_CRED) { in SetChallenge() 138 LOGE("Invalid credentialType: %d", params->credentialType); in SetChallenge() 227 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, ¶ms->credentialType) != CLIB_SUCCESS) { in InitIsoAuthParams() 409 if (AddIntToJson(sendToSelf, FIELD_CREDENTIAL_TYPE, params->credentialType) != CLIB_SUCCESS) { in AuthIsoSendFinalToOut()
|