mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 15:54:33 +00:00
description : add changeEncryptKey interface
Signed-off-by: lichenlong1 <lichenlong1@huawei.com>
This commit is contained in:
parent
14deb5afc0
commit
330401822f
12
api/@ohos.data.rdb.d.ts
vendored
12
api/@ohos.data.rdb.d.ts
vendored
@ -140,14 +140,13 @@ declare namespace rdb {
|
||||
* change the encrypted key(not null) if the database is configured with encrypted key.
|
||||
*
|
||||
* @note N/A
|
||||
* @since 7
|
||||
* @since 8
|
||||
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
|
||||
* @devices phone, tablet, tv, wearable, car
|
||||
* @param the encrypted key is uint8 form in a vector.
|
||||
* @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings.
|
||||
* @param newEncryptKey the encrypted key is uint8 form in a vector.
|
||||
*/
|
||||
changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback<void>):void;
|
||||
changeEncryptKey(newEncryptKey:Uint8Array): Promise<void>;
|
||||
changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback<number>):void;
|
||||
changeEncryptKey(newEncryptKey:Uint8Array): Promise<number>;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -187,10 +186,11 @@ declare namespace rdb {
|
||||
/**
|
||||
* Indicates the name of the database file
|
||||
*
|
||||
* @since 7
|
||||
* @since 8
|
||||
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
|
||||
*/
|
||||
name: string;
|
||||
encryptKey: Uint8Array;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user