mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
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 <huyiqi3@huawei.com>
This commit is contained in:
parent
d01bf813ba
commit
12230eeccf
14
api/@ohos.security.certManager.d.ts
vendored
14
api/@ohos.security.certManager.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user