/ohos5.0/base/security/certificate_manager/interfaces/kits/napi/src/ |
H A D | cm_napi_get_app_cert_info_common.cpp | 55 if (context->credential != nullptr) { in DeleteGetAppCertInfoAsyncContext() 56 FreeCredential(context->credential); in DeleteGetAppCertInfoAsyncContext() 101 napi_value certInfo = GenerateAppCertInfo(env, context->credential); in GetAppCertInfoWriteResult() 110 static void InitAppCert(struct Credential *credential) in InitAppCert() argument 112 credential->credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN)); in InitAppCert() 113 if (credential->credData.data == nullptr) { in InitAppCert() 117 …(void)memset_s(credential->credData.data, MAX_LEN_CERTIFICATE_CHAIN, 0, MAX_LEN_CERTIFICATE_CHAIN); in InitAppCert() 118 credential->credData.size = MAX_LEN_CERTIFICATE_CHAIN; in InitAppCert() 137 if (context->credential != nullptr) { in GetAppCertInfoAsyncWork() 139 InitAppCert(context->credential); in GetAppCertInfoAsyncWork() [all …]
|
H A D | cm_napi_common.cpp | 481 napi_value GenerateAppCertInfo(napi_env env, const struct Credential *credential) in GenerateAppCertInfo() argument 483 if (credential == nullptr) { in GenerateAppCertInfo() 501 NAPI_CALL(env, napi_create_int32(env, credential->certNum, &certNum)); in GenerateAppCertInfo() 502 NAPI_CALL(env, napi_create_int32(env, credential->keyNum, &keyNum)); in GenerateAppCertInfo() 504 …napi_value crendentialBuffer = GenerateAarrayBuffer(env, credential->credData.data, credential->cr… in GenerateAppCertInfo() 629 void FreeCredential(Credential *&credential) in FreeCredential() argument 631 if (credential == nullptr) { in FreeCredential() 635 if (credential->credData.data != nullptr) { in FreeCredential() 636 CmFree(credential->credData.data); in FreeCredential() 639 CmFree(credential); in FreeCredential() [all …]
|
/ohos5.0/docs/en/application-dev/basic-services/account/ |
H A D | manage-os-account-credential.md | 20 > The credential types supported by the device depend on the hardware capability. 27 | FACE_2D | 20000 | 2D face credential. | 28 | FACE_3D | 20001 | 3D face credential. | 93 1. Define the PIN authentication credential. 149 2. Set face credential information. The following uses 2D face credential as an example. 164 console.log('add face credential, resultCode: ' + code); 165 console.log('add face credential, request result: ' + result); 170 4. Set fingerprint credential information. 185 console.log('add fingerprint credential, resultCode: ' + code); 225 2. Specify the credential information to be updated. [all …]
|
H A D | manage-application-account.md | 68 1. Specify the account name, credential type, and credential. 73 let credential: string = 'xxxxxx'; 76 …nce/apis-basic-services-kit/js-apis-appAccount.md#getcredential9) to obtain the account credential. 86 …erence/apis-basic-services-kit/js-apis-appAccount.md#setcredential9) to set the account credential. 89 appAccountManager.setCredential(name, credentialType, credential).then(() => {
|
/ohos5.0/docs/en/application-dev/security/DeviceCertificateKit/ |
H A D | certManager-guidelines.md | 11 - Install an application certificate and its private credential. 13 - Obtain the application certificate and private credential. 15 …orm signing and signature verification using an application certificate and its private credential. 17 - Uninstall an application certificate and its private credential. 33 …ring) : Promise\<CMResult> | Obtains a private credential. This API uses a… 35 …ateCertificate(keyUri: string) : Promise\<void> | Uninstalls a private credential. This API uses a… 59 …. Install a private credential, obtain the private credential, use it to sign and verify data. The… 63 …* The data of the credential to be installed must be assigned based on the service. The data in th… 68 /* Keystore password of the credential to be installed. */ 72 /* Install a private credential. */ [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-device-certificate-kit/ |
H A D | js-apis-certManager.md | 116 Represents brief information about a credential. 137 | credential | [Credential](#credential) | No | Yes | Detailed credential information.| 313 let uri: string = 'test'; /* URI of the credential installed. The process for installing the creden… 319 if (cmResult?.credential == undefined) { 322 let list = cmResult.credential; 370 let uri: string = 'test'; /* URI of the credential installed. The process for installing the creden… 373 if (cmResult?.credential == undefined) { 376 let list = cmResult.credential; 419 let uri: string = 'test'; /* URI of the credential installed. The process for installing the creden… 1018 if (cmResult?.credential == undefined) { [all …]
|
H A D | errorcode-certManager.md | 43 The input certificate or credential is invalid. 47 Check that the certificate or credential is valid. 71 The user has not authorized the application to use the specified credential. 75 Check that the credential is correct, and authorize the application to use the credential.
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-security-devicesecuritylevel.md | 361 #### 5. Construct a complete credential. 373 The packet for requesting the credential is in the following format: 396 | support | List of credential formats supported by the requester.| 433 2. Generate a credential. 441 A credential file is generated as follows: 448 3. Verify a credential. 475 4. Send the generated credential file to the target device and make it take effect. 483 Send the generated credential file to the device. 488 Restart the device to make the new credential file take effect. 495 - Q: How can I use the credential tool in a production environment? [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-account.md | 62 - The credential ID is invalid. 287 The credential is incorrect. 297 Enter a correct credential and try again. 303 The credential does not exist. 313 Check whether the credential has been enrolled. 319 The credential inputer already exists. 333 The credential inputer is not found. 337 No credential inputer is registered when a credential is authenticated, added or modified. 341 Register a credential inputer. 408 - The user canceled the credential enrollment. [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_common.c | 35 void DestroyCredentialNode(void *credential) in DestroyCredentialNode() argument 37 if (credential == NULL) { in DestroyCredentialNode() 41 Free(credential); in DestroyCredentialNode()
|
/ohos5.0/docs/en/application-dev/security/DataProtectionKit/ |
H A D | dlp-overview.md | 29 …or device-cloud synergy authentication, checks the policy, and generates and issues the credential. 30 4. The cloud module sends the credential to the DLP permission management service through the DLP p… 31 5. The DLP permission manager application encrypts the file and packages the credential and ciphert… 40 8. The DLP permission manager application parses the DLP file, obtains the encrypted credential, an… 41 … the encrypted credential to the cloud module. The cloud module sends the credential to the cloud …
|
/ohos5.0/docs/en/readme/ |
H A D | user-iam.md | 5 …r user credential management and user identity authentication in OpenHarmony. It allows multiple u… 16 - User credential management: provides a unified user credential information management interface f… 29 … # User authentication framework, including user authentication, credential management, and … 37 - User credential management involves critical operations in the system, and the related APIs can b…
|
/ohos5.0/docs/en/application-dev/reference/apis-ipc-kit/ |
H A D | _o_h_i_p_c_skeleton.md | 36 …identity credential (including the token ID, UID, and PID) to that of this process and returns the… 37 …skeleton_setcallingidentity) (const char \*identity) | Sets the caller credential information to t… 200 …identity credential (including the token ID, UID, and PID) to that of this process and returns the… 233 Sets the caller credential information to the IPC context. 243 | identity | Pointer to the caller credential, which cannot be empty. The value is returned by **OH…
|
H A D | ipc__cskeleton_8h.md | 33 …identity credential (including the token ID, UID, and PID) to that of this process and returns the… 34 …skeleton_setcallingidentity) (const char \*identity) | Sets the caller credential information to t…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-account.md | 300 The credential is incorrect. 317 The credential does not exist. 334 The credential inputer already exists. 349 The credential inputer is not found.
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-user-auth-des.md | 18 - Authentication credential information 20 …credential template is generated when a user sets a password or enrolls facial information. The cr… 22 - Authentication credential template 36 …- Authenticator: processes data, obtains the stored credential template, and compares it with… 61 … about the authentication mode, trust level of the authentication result, executor, and credential. 113 **Table 1** describes the HDI APIs for executor registration, credential enrollment and deletion, u… 122 … std::vector<uint8_t> &challenge) | Opens a session for authentication credential management. | 123 | CloseSession(int32_t userId) | Closes a session for authentication credential management. … 289 // Open a session for authentication credential management. 304 // Close the session for authentication credential management. [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-user-authentication-kit/ |
H A D | errorcode-useriam.md | 15 The credential does not match the credential enrolled. 129 The type of credential has not been enrolled. 133 …vailableStatus** of the **userAuth** module is **FACE**, but no facial credential is enrolled in t… 134 **start()** is called to initiate facial authentication, but no facial credential is enrolled in th… 138 Check that the related type of credential has been enrolled in the device.
|
/ohos5.0/docs/en/application-dev/reference/apis-data-protection-kit/ |
H A D | errorcode-dlp.md | 91 An error occurs in the credential service. 95 1. The DLP credential service does not exist. 97 2. The DLP credential service is abnormal. 112 The credential authentication server is abnormal. 116 1. The credential authentication server cannot be connected. 118 2. The credential authentication server does not exist. 122 Check the credential authentication server and try again.
|
/ohos5.0/docs/en/application-dev/security/UserAuthenticationKit/ |
H A D | user-authentication-overview.md | 45 - Awareness of the change in credential status 47 …credential is changed, the caller can query the current credential status or obtain the credential… 89 … uint64_t | ID generated each time a credential of this type is enrolled. The ID remains unchanged… 90 | credentialId | Credential ID| uint64_t | ID of a credential (such as the face or fingerprint) enr…
|
/ohos5.0/drivers/interface/user_auth/v1_2/ |
H A D | IUserAuthInterface.idl | 78 * @brief Opens a session for authentication credential management. 88 * @brief Closes the authentication credential management session. 98 * If the authentication type is PIN, this method updates the existing PIN credential. 133 * @brief Deletes credential information. 136 * @param credentialId Indicates the credential index. 138 * @param info Indicates the credential information to delete. See {@link CredentialInfo}. 146 * @brief Obtains credential information. 150 * @param infos Indicates credential information. See {@link CredentialInfo}. 289 * If the authentication type is PIN, this method updates the existing PIN credential. 342 * @brief Get all credential of enrolled users. [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/user_auth_v1_2/foo/user_auth/v1_2/ |
H A D | IUserAuthInterface.idl | 78 * @brief Opens a session for authentication credential management. 88 * @brief Closes the authentication credential management session. 98 * If the authentication type is PIN, this method updates the existing PIN credential. 133 * @brief Deletes credential information. 136 * @param credentialId Indicates the credential index. 138 * @param info Indicates the credential information to delete. See {@link CredentialInfo}. 146 * @brief Obtains credential information. 150 * @param infos Indicates credential information. See {@link CredentialInfo}. 289 * If the authentication type is PIN, this method updates the existing PIN credential. 342 * @brief Get all credential of enrolled users. [all …]
|
/ohos5.0/drivers/interface/user_auth/v3_0/ |
H A D | IUserAuthInterface.idl | 92 * @brief Opens a session for authentication credential management. 105 * @brief Closes the authentication credential management session. 143 * @brief Deletes credential information. 146 * @param credentialId Indicates the credential index. 159 * @brief Obtains credential information. 163 * @param infos Indicates credential information. See {@link CredentialInfo}. 320 * If the authentication type is PIN, this method updates the existing PIN credential. 366 * @brief Get all credential of enrolled users. 499 * @brief Obtains credential information. 501 * @param credentialId Indicates the credential ID. [all …]
|
/ohos5.0/base/account/os_account/test/fuzztest/appaccount_stub/setaccountcredentialstub_fuzzer/ |
H A D | setaccountcredentialstub_fuzzer.cpp | 38 std::string credential = fuzzData.GenerateRandomString(); in SetAccountCredentialStubFuzzTest() local 49 if (!dataTemp.WriteString(credential)) { in SetAccountCredentialStubFuzzTest()
|
/ohos5.0/drivers/interface/user_auth/v1_0/ |
H A D | IUserAuthInterface.idl | 78 * @brief Opens a session for authentication credential management. 88 * @brief Closes the authentication credential management session. 98 * If the authentication type is PIN, this method updates the existing PIN credential. 133 * @brief Deletes credential information. 136 * @param credentialId Indicates the credential index. 138 * @param info Indicates the credential information to delete. See {@link CredentialInfo}. 146 * @brief Obtains credential information. 150 * @param infos Indicates credential information. See {@link CredentialInfo}. 174 … * @param deletedInfos Indicates the credential information to delete. See {@link CredentialInfo}. 184 … * @param deletedInfos Indicates the credential information to delete. See {@link CredentialInfo}.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/user_auth_v1_0/foo/user_auth/v1_0/ |
H A D | IUserAuthInterface.idl | 78 * @brief Opens a session for authentication credential management. 88 * @brief Closes the authentication credential management session. 98 * If the authentication type is PIN, this method updates the existing PIN credential. 133 * @brief Deletes credential information. 136 * @param credentialId Indicates the credential index. 138 * @param info Indicates the credential information to delete. See {@link CredentialInfo}. 146 * @brief Obtains credential information. 150 * @param infos Indicates credential information. See {@link CredentialInfo}. 174 … * @param deletedInfos Indicates the credential information to delete. See {@link CredentialInfo}. 184 … * @param deletedInfos Indicates the credential information to delete. See {@link CredentialInfo}.
|