From 12230eeccf49e177bef7cbe75839e8beccd57468 Mon Sep 17 00:00:00 2001 From: huyiqi Date: Mon, 29 Jul 2024 10:56:19 +0800 Subject: [PATCH] cherry pick d78fb5b from https://gitee.com/huyiqi/interface_sdk-js/pulls/12947 add cert manager get pri_cred list api Signed-off-by: huyiqi --- api/@ohos.security.certManager.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/api/@ohos.security.certManager.d.ts b/api/@ohos.security.certManager.d.ts index 6fbcf3740..e76196aa2 100644 --- a/api/@ohos.security.certManager.d.ts +++ b/api/@ohos.security.certManager.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -1011,6 +1011,18 @@ declare namespace certificateManager { * @since 12 */ function getAllSystemAppCertificates(): Promise; + + /** + * Get all private certificates installed by the application. + * + * @permission ohos.permission.ACCESS_CERT_MANAGER + * @returns { Promise } The private certificates installed by the application. + * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. + * @throws { BusinessError } 17500001 - Internal error. + * @syscap SystemCapability.Security.CertificateManager + * @since 13 + */ + function getPrivateCertificates(): Promise; } export default certificateManager;