js-apidiff-security.md 18.0 KB
Newer Older
1 2 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
| Change Type | New Version | Old Version | d.ts File |
| ---- | ------ | ------ | -------- |
|Added||Module name: ohos.abilityAccessCtrl<br>Class name: AtManager<br>Method or attribute name: checkAccessToken|@ohos.abilityAccessCtrl.d.ts|
|Added||Method or attribute name: grantUserGrantedPermission<br>Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise<void>;|@ohos.abilityAccessCtrl.d.ts|
|Added||Method or attribute name: grantUserGrantedPermission<br>Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback<void>): void;|@ohos.abilityAccessCtrl.d.ts|
|Added||Method or attribute name: revokeUserGrantedPermission<br>Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise<void>;|@ohos.abilityAccessCtrl.d.ts|
|Added||Method or attribute name: revokeUserGrantedPermission<br>Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback<void>): void;|@ohos.abilityAccessCtrl.d.ts|
|Added||Method or attribute name: permissionName<br>Function name: permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts|
|Added||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||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||Method or attribute name: startUsingPermission<br>Function name: function startUsingPermission(tokenID: number, permissionName: Permissions): Promise<void>;|@ohos.privacyManager.d.ts|
|Added||Method or attribute name: startUsingPermission<br>Function name: function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback<void>): void;|@ohos.privacyManager.d.ts|
|Added||Method or attribute name: stopUsingPermission<br>Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise<void>;|@ohos.privacyManager.d.ts|
|Added||Method or attribute name: stopUsingPermission<br>Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback<void>): void;|@ohos.privacyManager.d.ts|
|Added||Method or attribute name: permissionNames<br>Function name: permissionNames: Array<Permissions>;|@ohos.privacyManager.d.ts|
|Added||Module name: ohos.security.cryptoFramework<br>Class name: Result<br>Method or attribute name: ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: initSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: initSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: updateSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: updateSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: updateSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: finishSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: finishSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: finishSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: abortSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: abortSession|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksSessionHandle|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksSessionHandle<br>Method or attribute name: handle|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksSessionHandle<br>Method or attribute name: challenge|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksReturnResult|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: outData|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: properties|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksReturnResult<br>Method or attribute name: certChains|@ohos.security.huks.d.ts|
|Added||Module name: ohos.security.huks<br>Class name: HuksExceptionErrCode|@ohos.security.huks.d.ts|
|Added||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||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||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||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||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||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||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||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||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||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||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||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||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||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||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||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||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||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||@ohos.security.cryptoFramework.d.ts|
|Deleted||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts|
|Deleted||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts|
|Deleted||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKey||@ohos.security.huks.d.ts|
|Deleted||Module name: ohos.security.huks<br>Class name: huks<br>Method or attribute name: attestKey||@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>New 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>New API: ohos.security.huks.generateKeyItem     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: deleteKey<br>Deprecated version: N/A|Method or attribute name: deleteKey<br>Deprecated version: 9<br>New API: ohos.security.huks.deleteKeyItem     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: importKey<br>Deprecated version: N/A|Method or attribute name: importKey<br>Deprecated version: 9<br>New API: ohos.security.huks.importKeyItem     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: exportKey<br>Deprecated version: N/A|Method or attribute name: exportKey<br>Deprecated version: 9<br>New API: ohos.security.huks.exportKeyItem     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: getKeyProperties<br>Deprecated version: N/A|Method or attribute name: getKeyProperties<br>Deprecated version: 9<br>New API: ohos.security.huks.getKeyItemProperties     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: isKeyExist<br>Deprecated version: N/A|Method or attribute name: isKeyExist<br>Deprecated version: 9<br>New API: ohos.security.huks.isKeyItemExist     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: init<br>Deprecated version: N/A|Method or attribute name: init<br>Deprecated version: 9<br>New API: ohos.security.huks.initSession     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: update<br>Deprecated version: N/A|Method or attribute name: update<br>Deprecated version: 9<br>New API: ohos.security.huks.updateSession     |@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|
|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: finish<br>Deprecated version: N/A|Method or attribute name: finish<br>Deprecated version: 9<br>New API: ohos.security.huks.finishSession     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Method or attribute name: abort<br>Deprecated version: N/A|Method or attribute name: abort<br>Deprecated version: 9<br>New API: ohos.security.huks.abortSession     |@ohos.security.huks.d.ts|
|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|
|Deprecated version changed|Class name: HuksHandle<br>Deprecated version: N/A|Class name: HuksHandle<br>Deprecated version: 9<br>New 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>New 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>New 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>New 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>New 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>New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts|
|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|
|Error code added||Method or attribute name: verifyAccessTokenSync<br>Error code: 401, 12100001|@ohos.abilityAccessCtrl.d.ts|
|Error code added||Method or attribute name: getPermissionFlags<br>Error code: 401, 201, 12100001, 12100002, 12100003, 12100006, 12100007|@ohos.abilityAccessCtrl.d.ts|
|Error code added||Method or attribute name: on_permissionStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts|
|Error code added||Method or attribute name: off_permissionStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts|
|Error code added||Method or attribute name: getPermissionUsedRecords<br>Error code: 401, 201, 12100001, 12100002, 12100003, 12100007,12100008|@ohos.privacyManager.d.ts|
|Error code added||Method or attribute name: on_activeStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.privacyManager.d.ts|
|Error code added||Method or attribute name: off_activeStateChange<br>Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.privacyManager.d.ts|