js-apidiff-security.md 14.6 KB
Newer Older
G
Gloria 已提交
1
| Change Type | Old Version | New Version | d.ts File |
2
| ---- | ------ | ------ | -------- |
G
Gloria 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|Added|NA|Method or attribute name: grantUserGrantedPermission<br>Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise<void>;|@ohos.abilityAccessCtrl.d.ts|
|Added|NA|Method or attribute name: grantUserGrantedPermission<br>Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback<void>): void;|@ohos.abilityAccessCtrl.d.ts|
|Added|NA|Method or attribute name: revokeUserGrantedPermission<br>Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise<void>;|@ohos.abilityAccessCtrl.d.ts|
|Added|NA|Method or attribute name: revokeUserGrantedPermission<br>Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback<void>): void;|@ohos.abilityAccessCtrl.d.ts|
|Added|NA|Method or attribute name: permissionName<br>Function name: permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts|
|Added|NA|Method or attribute name: addPermissionUsedRecord<br>Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise<void>;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: addPermissionUsedRecord<br>Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback<void>): void;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: startUsingPermission<br>Function name: function startUsingPermission(tokenID: number, permissionName: Permissions): Promise<void>;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: startUsingPermission<br>Function name: function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback<void>): void;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: stopUsingPermission<br>Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise<void>;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: stopUsingPermission<br>Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback<void>): void;|@ohos.privacyManager.d.ts|
|Added|NA|Method or attribute name: permissionNames<br>Function name: permissionNames: Array<Permissions>;|@ohos.privacyManager.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksSessionHandle|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksSessionHandle<br>Method or attribute name: handle|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksSessionHandle<br>Method or attribute name: challenge|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksReturnResult|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: outData|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: properties|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: certChains|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts|
|Added|NA|Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode<br>Method or attribute name: HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts|
|Deleted|Module name: ohos.security.cryptoFramework<br>Class name: Result<br>Method or attribute name: ERR_EXTERNAL_ERROR|NA|@ohos.security.cryptoFramework.d.ts|
|Deleted|Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKey|NA|@ohos.security.huks.d.ts|
|Deleted|Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKey|NA|@ohos.security.huks.d.ts|
|Deleted|Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKey|NA|@ohos.security.huks.d.ts|
|Deleted|Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKey|NA|@ohos.security.huks.d.ts|
|Deprecated version changed|Method or attribute name: verifyAccessToken<br>Deprecated version: N/A|Method or attribute name: verifyAccessToken<br>Deprecated version: 9<br>Substitute API: ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts|
|Deprecated version changed|Method or attribute name: generateKey<br>Deprecated version: N/A|Method or attribute name: generateKey<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.generateKeyItem     |@ohos.security.huks.d.ts|
48
|Deprecated version changed|Method or attribute name: generateKey<br>Deprecated version: N/A|Method or attribute name: generateKey<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
49
|Deprecated version changed|Method or attribute name: deleteKey<br>Deprecated version: N/A|Method or attribute name: deleteKey<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.deleteKeyItem     |@ohos.security.huks.d.ts|
50
|Deprecated version changed|Method or attribute name: deleteKey<br>Deprecated version: N/A|Method or attribute name: deleteKey<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
51
|Deprecated version changed|Method or attribute name: importKey<br>Deprecated version: N/A|Method or attribute name: importKey<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.importKeyItem     |@ohos.security.huks.d.ts|
52
|Deprecated version changed|Method or attribute name: importKey<br>Deprecated version: N/A|Method or attribute name: importKey<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
53
|Deprecated version changed|Method or attribute name: exportKey<br>Deprecated version: N/A|Method or attribute name: exportKey<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.exportKeyItem     |@ohos.security.huks.d.ts|
54
|Deprecated version changed|Method or attribute name: exportKey<br>Deprecated version: N/A|Method or attribute name: exportKey<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
55
|Deprecated version changed|Method or attribute name: getKeyProperties<br>Deprecated version: N/A|Method or attribute name: getKeyProperties<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.getKeyItemProperties     |@ohos.security.huks.d.ts|
56
|Deprecated version changed|Method or attribute name: getKeyProperties<br>Deprecated version: N/A|Method or attribute name: getKeyProperties<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
57
|Deprecated version changed|Method or attribute name: isKeyExist<br>Deprecated version: N/A|Method or attribute name: isKeyExist<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.isKeyItemExist     |@ohos.security.huks.d.ts|
58
|Deprecated version changed|Method or attribute name: isKeyExist<br>Deprecated version: N/A|Method or attribute name: isKeyExist<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
59
|Deprecated version changed|Method or attribute name: init<br>Deprecated version: N/A|Method or attribute name: init<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.initSession     |@ohos.security.huks.d.ts|
60
|Deprecated version changed|Method or attribute name: init<br>Deprecated version: N/A|Method or attribute name: init<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
61
|Deprecated version changed|Method or attribute name: update<br>Deprecated version: N/A|Method or attribute name: update<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.updateSession     |@ohos.security.huks.d.ts|
62 63
|Deprecated version changed|Method or attribute name: update<br>Deprecated version: N/A|Method or attribute name: update<br>Deprecated version: 9|@ohos.security.huks.d.ts|
|Deprecated version changed|Method or attribute name: update<br>Deprecated version: N/A|Method or attribute name: update<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
64
|Deprecated version changed|Method or attribute name: finish<br>Deprecated version: N/A|Method or attribute name: finish<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.finishSession     |@ohos.security.huks.d.ts|
65
|Deprecated version changed|Method or attribute name: finish<br>Deprecated version: N/A|Method or attribute name: finish<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
66
|Deprecated version changed|Method or attribute name: abort<br>Deprecated version: N/A|Method or attribute name: abort<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.abortSession     |@ohos.security.huks.d.ts|
67
|Deprecated version changed|Method or attribute name: abort<br>Deprecated version: N/A|Method or attribute name: abort<br>Deprecated version: 9|@ohos.security.huks.d.ts|
G
Gloria 已提交
68 69 70 71 72 73
|Deprecated version changed|Class name: HuksHandle<br>Deprecated version: N/A|Class name: HuksHandle<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.HuksSessionHandle     |@ohos.security.huks.d.ts|
|Deprecated version changed|Class name: HuksResult<br>Deprecated version: N/A|Class name: HuksResult<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.HuksReturnResult     |@ohos.security.huks.d.ts|
|Deprecated version changed|Class name: HuksErrorCode<br>Deprecated version: N/A|Class name: HuksErrorCode<br>Deprecated version: 9<br>Substitute API: ohos.security.huks.HuksExceptionErrCode     |@ohos.security.huks.d.ts|
|Deprecated version changed|Class name: Cipher<br>Deprecated version: N/A|Class name: Cipher<br>Deprecated version: 9<br>Substitute API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts|
|Deprecated version changed|Method or attribute name: rsa<br>Deprecated version: N/A|Method or attribute name: rsa<br>Deprecated version: 9<br>Substitute API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts|
|Deprecated version changed|Method or attribute name: aes<br>Deprecated version: N/A|Method or attribute name: aes<br>Deprecated version: 9<br>Substitute API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts|
74 75 76 77
|Initial version changed|Method or attribute name: getPermissionFlags<br>Initial version: 9|Method or attribute name: getPermissionFlags<br>Initial version: 8|@ohos.abilityAccessCtrl.d.ts|
|Initial version changed|Method or attribute name: update<br>Initial version: 9|Method or attribute name: update<br>Initial version: 8|@ohos.security.huks.d.ts|
|Initial version changed|Method or attribute name: update<br>Initial version: 9|Method or attribute name: update<br>Initial version: 8|@ohos.security.huks.d.ts|
|Initial version changed|Method or attribute name: update<br>Initial version: 9|Method or attribute name: update<br>Initial version: 8|@ohos.security.huks.d.ts|
G
Gloria 已提交
78 79 80 81 82 83 84
|Error code added|NA|Method or attribute name: verifyAccessTokenSync<br>Error code: 401, 12100001|@ohos.abilityAccessCtrl.d.ts|
|Error code added|NA|Method or attribute name: getPermissionFlags<br>Error code: 401, 201, 12100001, 12100002, 12100003, 12100006, 12100007|@ohos.abilityAccessCtrl.d.ts|
|Error code added|NA|Method or attribute name: on_permissionStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts|
|Error code added|NA|Method or attribute name: off_permissionStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts|
|Error code added|NA|Method or attribute name: getPermissionUsedRecords<br>Error code: 401, 201, 12100001, 12100002, 12100003, 12100007, 12100008|@ohos.privacyManager.d.ts|
|Error code added|NA|Method or attribute name: on_activeStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.privacyManager.d.ts|
|Error code added|NA|Method or attribute name: off_activeStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.privacyManager.d.ts|