未验证 提交 b5e931c5 编写于 作者: O openharmony_ci 提交者: Gitee

!13962 [翻译完成】#I66DW9

Merge pull request !13962 from Annie_wang/PR12296
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
- [@ohos.data.distributedDataObject (Distributed Data Object)](js-apis-data-distributedobject.md) - [@ohos.data.distributedDataObject (Distributed Data Object)](js-apis-data-distributedobject.md)
- [@ohos.data.distributedKVStore (Distributed KV Store)](js-apis-distributedKVStore.md) - [@ohos.data.distributedKVStore (Distributed KV Store)](js-apis-distributedKVStore.md)
- [@ohos.data.preferences (Preferences)](js-apis-data-preferences.md) - [@ohos.data.preferences (Preferences)](js-apis-data-preferences.md)
- [@ohos.data.rdb (RDB)](js-apis-data-rdb.md) - [@ohos.data.relationalStore (RDB Store)](js-apis-data-relationalStore.md)
- [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md) - [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md)
- data/rdb - data/rdb
- [resultSet](js-apis-data-resultset.md) - [resultSet](js-apis-data-resultset.md)
...@@ -355,8 +355,9 @@ ...@@ -355,8 +355,9 @@
- [@ohos.bundle.innerBundleManager](js-apis-Bundle-InnerBundleManager.md) - [@ohos.bundle.innerBundleManager](js-apis-Bundle-InnerBundleManager.md)
- [@ohos.bundleState](js-apis-deviceUsageStatistics.md) - [@ohos.bundleState](js-apis-deviceUsageStatistics.md)
- [@ohos.bytrace](js-apis-bytrace.md) - [@ohos.bytrace](js-apis-bytrace.md)
- [@ohos.data.storage](js-apis-data-storage.md)
- [@ohos.data.distributedData](js-apis-distributed-data.md) - [@ohos.data.distributedData](js-apis-distributed-data.md)
- [@ohos.data.storage](js-apis-data-storage.md)
- [@ohos.data.rdb (RDB)](js-apis-data-rdb.md)
- [@ohos.distributedBundle](js-apis-Bundle-distributedBundle.md) - [@ohos.distributedBundle](js-apis-Bundle-distributedBundle.md)
- [@ohos.document](js-apis-document.md) - [@ohos.document](js-apis-document.md)
- [@ohos.geolocation](js-apis-geolocation.md) - [@ohos.geolocation](js-apis-geolocation.md)
......
...@@ -203,7 +203,7 @@ cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) { ...@@ -203,7 +203,7 @@ cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) {
console.log("createX509Cert failed, errCode: " + error.code + ", errMsg: " + error.message); console.log("createX509Cert failed, errCode: " + error.code + ", errMsg: " + error.message);
} else { } else {
console.log("createX509Cert success"); console.log("createX509Cert success");
// Generate a public key by AsyKeyGenerator or obtain the public key by using getPublicKey() of the X509Cert instance. // The service needs to call getPublicKey() of the upper-level X509Cert object to obtain the public key.
let pubKey = null; let pubKey = null;
x509Cert.verify(pubKey, function (error, data) { x509Cert.verify(pubKey, function (error, data) {
if (error != null) { if (error != null) {
...@@ -355,8 +355,7 @@ Obtains the public key of this X.509 certificate. This API uses an asynchronous ...@@ -355,8 +355,7 @@ Obtains the public key of this X.509 certificate. This API uses an asynchronous
| Type | Description | | Type | Description |
| ------ | ---------------- | | ------ | ---------------- |
| cryptoFramework.PubKey | X.509 certificate public key obtained.| | cryptoFramework.PubKey | Public key of the X509 certificate obtained. This object is used only for **verify()** of **X509Cert**.|
**Example** **Example**
...@@ -398,8 +397,7 @@ Checks the validity period of this X.509 certificate. This API uses an asynchron ...@@ -398,8 +397,7 @@ Checks the validity period of this X.509 certificate. This API uses an asynchron
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------- | ---- | ---------- | | -------- | -------------- | ---- | ---------- |
| date | string | Yes | Date of the certificate to check. | | date | string | Yes | Date in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The date must end with **Z**, which indicates the UTC.|
**Example** **Example**
...@@ -585,8 +583,8 @@ Obtains the start time of this X.509 certificate. ...@@ -585,8 +583,8 @@ Obtains the start time of this X.509 certificate.
**Return value** **Return value**
| Type | Description | | Type | Description |
| ------ | -------------------------- | | ------ | ------------------------------------------------------------ |
| string | Start time of the X.509 certificate obtained.| | string | Start time of the X509 certificate validity period, in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The value must end with **Z**, which indicates the UTC.|
**Example** **Example**
...@@ -621,8 +619,8 @@ Obtains the expiration time of this X.509 certificate. ...@@ -621,8 +619,8 @@ Obtains the expiration time of this X.509 certificate.
**Return value** **Return value**
| Type | Description | | Type | Description |
| ------ | -------------------------- | | ------ | ------------------------------------------------------------ |
| string | Expiration time of the X.509 certificate obtained.| | string | Expiration time of the X509 certificate validity period, in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The value must end with **Z**, which indicates the UTC.|
**Example** **Example**
......
...@@ -1998,7 +1998,7 @@ import cryptoFramework from "@ohos.security.cryptoFramework" ...@@ -1998,7 +1998,7 @@ import cryptoFramework from "@ohos.security.cryptoFramework"
let signer1 = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); let signer1 = cryptoFramework.createSign("RSA1024|PKCS1|SHA256");
let singer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256") let signer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256")
``` ```
## Sign ## Sign
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册