add cert manager get pri_cred list api

Signed-off-by: huyiqi <huyiqi3@huawei.com>
This commit is contained in:
huyiqi 2024-07-29 10:56:19 +08:00
parent 8d3806f89b
commit d78fb5b171

View File

@ -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<CMResult>;
/**
* Get all private certificates installed by the application.
*
* @permission ohos.permission.ACCESS_CERT_MANAGER
* @returns { Promise<CMResult> } 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<CMResult>;
}
export default certificateManager;