2022-09-29 05:12:28 +00:00
|
|
|
/*
|
2023-03-15 07:06:12 +00:00
|
|
|
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
2022-09-29 05:12:28 +00:00
|
|
|
* 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
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
import type { AsyncCallback } from './basic';
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-03-15 07:06:12 +00:00
|
|
|
* @namespace dlpPermission
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
|
|
|
declare namespace dlpPermission {
|
2023-06-07 11:56:32 +00:00
|
|
|
/**
|
|
|
|
* Enumerates for DLP file action types.
|
|
|
|
*
|
|
|
|
* @enum { number } ActionFlags
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
export enum ActionFlags {
|
|
|
|
ACTION_INVALID = 0X00000000,
|
|
|
|
/**
|
|
|
|
* Indicates the view action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_VIEW = 0x00000001,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the save action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_SAVE = 0x00000002,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the save as action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_SAVE_AS = 0x00000004,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the edit action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_EDIT = 0x00000008,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the screen capture action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_SCREEN_CAPTURE = 0x00000010,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the screen share action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_SCREEN_SHARE = 0x00000020,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the screen record action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_SCREEN_RECORD = 0x00000040,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the copy action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_COPY = 0x00000080,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the print action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_PRINT = 0x00000100,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the export action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_EXPORT = 0x00000200,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the permission change action to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
ACTION_PERMISSION_CHANGE = 0x00000400
|
|
|
|
}
|
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
export enum AuthPermType {
|
|
|
|
/**
|
|
|
|
* Read only access to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
READ_ONLY = 1,
|
2022-09-29 05:12:28 +00:00
|
|
|
|
2023-06-07 11:56:32 +00:00
|
|
|
/**
|
|
|
|
* Content edit access to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
CONTENT_EDIT = 2,
|
|
|
|
|
2022-09-29 05:12:28 +00:00
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Full control access to DLP file.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-06-07 11:56:32 +00:00
|
|
|
FULL_CONTROL = 3,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* default permission used for initializing.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
DEFAULT_PERM = 4,
|
2023-04-03 06:29:20 +00:00
|
|
|
}
|
|
|
|
|
2023-06-07 11:56:32 +00:00
|
|
|
/**
|
|
|
|
* Describes the network registration state.
|
|
|
|
*
|
|
|
|
* @interface DLPPermissionInfo
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
export interface DLPPermissionInfo {
|
|
|
|
/**
|
|
|
|
* Indicates the permission type of DLP file.
|
|
|
|
*
|
|
|
|
* @type { AuthPermType }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
access: AuthPermType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the permitted action type of DLP file.
|
|
|
|
*
|
|
|
|
* @type { ActionFlags }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 10
|
|
|
|
*/
|
|
|
|
flags: ActionFlags;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
/**
|
|
|
|
* Query access to DLP file from dlp permission service.
|
|
|
|
*
|
2023-06-07 11:56:32 +00:00
|
|
|
* @returns { Promise<DLPPermissionInfo> }
|
2023-04-03 06:29:20 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return The access to a DLP file.
|
|
|
|
*/
|
2023-06-07 11:56:32 +00:00
|
|
|
function queryFileAccess(): Promise<DLPPermissionInfo>;
|
2023-04-03 06:29:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Query access to DLP file from dlp permission service.
|
|
|
|
*
|
2023-06-07 11:56:32 +00:00
|
|
|
* @param { AsyncCallback<DLPPermissionInfo> } callback
|
2023-04-03 06:29:20 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return The access to a DLP file.
|
|
|
|
*/
|
2023-06-07 11:56:32 +00:00
|
|
|
function queryFileAccess(callback: AsyncCallback<DLPPermissionInfo>): void;
|
2023-04-03 06:29:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether current application is in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @returns { Promise<boolean> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function isInSandbox(): Promise<boolean>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether current application is in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @param { AsyncCallback<boolean> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function isInSandbox(callback: AsyncCallback<boolean>): void;
|
|
|
|
|
2023-04-27 12:27:19 +00:00
|
|
|
/**
|
|
|
|
* Get current system sandbox policy.
|
|
|
|
*
|
|
|
|
* @returns { Promise<boolean> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function getDlpGatheringPolicy(): Promise<boolean>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get current system sandbox policy.
|
|
|
|
*
|
|
|
|
* @param { AsyncCallback<boolean> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function getDlpGatheringPolicy(callback: AsyncCallback<boolean>): void;
|
|
|
|
|
2023-05-10 09:22:24 +00:00
|
|
|
/**
|
|
|
|
* Set Document Retention Status by dorUri.
|
|
|
|
*
|
|
|
|
* @param { Array<string> } docUris
|
|
|
|
* @param { AsyncCallback<boolean> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function setRetentionState(docUris: Array<string>, callback: AsyncCallback<boolean>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set Document Retention Status by dorUri.
|
|
|
|
*
|
|
|
|
* @param { Array<string> } docUris
|
|
|
|
* @returns { Promise<boolean> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function setRetentionState(docUris: Array<string>): Promise<boolean>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set Document Non-Retention Status by dorUri.
|
|
|
|
*
|
|
|
|
* @param { Array<string> } docUris
|
|
|
|
* @param { AsyncCallback<boolean> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function setNonRetentionState(docUris: Array<string>, callback: AsyncCallback<boolean>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set Document Non-Retention Status by dorUri.
|
|
|
|
*
|
|
|
|
* @param { Array<string> } docUris
|
|
|
|
* @returns { Promise<boolean> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return whether or not.
|
|
|
|
*/
|
|
|
|
function setNonRetentionState(docUris: Array<string>): Promise<boolean>;
|
|
|
|
|
|
|
|
export interface RetentionSandboxInfo {
|
|
|
|
/**
|
|
|
|
* appIndex
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
appIndex: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* bundleName
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
bundleName: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Document uri list
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
docUris: Array<string>;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get Document uri list.
|
|
|
|
*
|
|
|
|
* @param { string } bundleName
|
|
|
|
* @param { AsyncCallback<Array<RetentionSandboxInfo>> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return Document uri list.
|
|
|
|
*/
|
|
|
|
function getRetentionSandboxList(bundleName: string, callback: AsyncCallback<Array<RetentionSandboxInfo>>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get Document uri list.
|
|
|
|
*
|
|
|
|
* @param { string } bundleName
|
|
|
|
* @returns { Promise<Array<RetentionSandboxInfo>> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return Document uri list.
|
|
|
|
*/
|
|
|
|
function getRetentionSandboxList(bundleName?: string): Promise<Array<RetentionSandboxInfo>>;
|
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
/**
|
|
|
|
* Get support DLP file type.
|
|
|
|
*
|
|
|
|
* @returns { Promise<Array<string>> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return The list of supported DLP file type.
|
|
|
|
*/
|
|
|
|
function getDlpSupportFileType(): Promise<Array<string>>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get support DLP file type.
|
|
|
|
*
|
|
|
|
* @param { AsyncCallback<Array<string>> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
* @return The list of supported DLP file type.
|
|
|
|
*/
|
|
|
|
function getDlpSupportFileType(callback: AsyncCallback<Array<string>>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Install an application in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {string} bundleName Indicates the bundle name of the application.
|
|
|
|
* @param {AuthPermType} access Indicates the access to DLP file.
|
|
|
|
* @param {number} userId Indicates the user ID.
|
2023-05-10 09:22:24 +00:00
|
|
|
* @param { string } uri
|
2023-04-03 06:29:20 +00:00
|
|
|
* @returns { Promise<number> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return the appIndex installed application.
|
|
|
|
*/
|
2023-05-10 09:22:24 +00:00
|
|
|
function installDlpSandbox(bundleName: string, access: AuthPermType, userId: number, uri: string): Promise<number>;
|
2023-04-03 06:29:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Install an application in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {string} bundleName Indicates the bundle name of the application.
|
|
|
|
* @param {AuthPermType} access Indicates the access to DLP file.
|
|
|
|
* @param {number} userId Indicates the user ID.
|
2023-05-10 09:22:24 +00:00
|
|
|
* @param { string } uri
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param { AsyncCallback<number> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return the appIndex installed application.
|
|
|
|
*/
|
|
|
|
function installDlpSandbox(
|
|
|
|
bundleName: string,
|
|
|
|
access: AuthPermType,
|
|
|
|
userId: number,
|
2023-05-10 09:22:24 +00:00
|
|
|
uri: string,
|
2023-04-03 06:29:20 +00:00
|
|
|
callback: AsyncCallback<number>
|
|
|
|
): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Uninstall an application in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {string} bundleName Indicates the bundle name of the application.
|
|
|
|
* @param {number} userId Indicates the user ID.
|
|
|
|
* @param {number} appIndex Indicates the index of dlp sandbox.
|
|
|
|
* @returns { Promise<void> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
|
|
|
function uninstallDlpSandbox(bundleName: string, userId: number, appIndex: number): Promise<void>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Uninstall an application in DLP sandbox.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {string} bundleName Indicates the bundle name of the application.
|
|
|
|
* @param {number} userId Indicates the user ID.
|
|
|
|
* @param {number} appIndex Indicates the index of dlp sandbox.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
|
|
|
function uninstallDlpSandbox(
|
|
|
|
bundleName: string,
|
|
|
|
userId: number,
|
|
|
|
appIndex: number,
|
|
|
|
callback: AsyncCallback<void>
|
|
|
|
): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* register to the death of dlp permission service.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {'serviceDie'} type Type of the death event of service.
|
|
|
|
* @param { Callback<void> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
|
|
|
function on(type: 'serviceDie', callback: Callback<void>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Listen the state of DLP sandbox.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @typedef DlpSandboxStateParam
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
export interface DlpSandboxStateParam {
|
|
|
|
bundleName: string;
|
|
|
|
userId: number;
|
|
|
|
appIndex: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Subscribe the event reported when dlp sandbox uninstall.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {'uninstallDlpSandbox'} type Type of the uninstall sandbox event.
|
|
|
|
* @param {Callback<DlpSandboxStateParam>} listener Indicates the listenner of dlp sandbox state.
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
|
|
|
function on(type: 'uninstallDlpSandbox', listener: Callback<DlpSandboxStateParam>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unsubscribe the event reported when dlp sandbox uninstall.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {'uninstallDlpSandbox'} type Type of the uninstall sandbox event.
|
|
|
|
* @param {Callback<DlpSandboxStateParam>} listener Indicates the listenner of dlp sandbox state.
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 07:42:30 +00:00
|
|
|
function off(type: 'uninstallDlpSandbox', listener?: Callback<DlpSandboxStateParam>): boolean;
|
2023-04-03 06:29:20 +00:00
|
|
|
|
|
|
|
export enum AccountType {
|
|
|
|
/**
|
|
|
|
* Cloud account type, type of the account for granting permissions to the DLP file.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
CLOUD_ACCOUNT = 1,
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Domain account type, type of the account for granting permissions to the DLP file.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
DOMAIN_ACCOUNT = 2,
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Application account type, type of the account for granting permissions to the DLP file.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
APPLICATION_ACCOUNT = 3
|
|
|
|
}
|
2023-03-15 07:06:12 +00:00
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
export interface AuthUser {
|
2023-03-15 07:06:12 +00:00
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Access authorized account
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
authAccount: string;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Access authorized type
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
authPerm: AuthPermType;
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Permission expiry time
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
permExpiryTime: number;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* Access authorized account type
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
authAccountType: AccountType;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DlpProperty {
|
|
|
|
/**
|
|
|
|
* Dlp file owner account
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
ownerAccount: string;
|
|
|
|
|
2023-06-08 08:55:45 +00:00
|
|
|
/**
|
|
|
|
* Dlp file owner accountId
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
ownerAccountId: string;
|
|
|
|
|
2023-04-03 06:29:20 +00:00
|
|
|
/**
|
|
|
|
* Dlp file authorized user list
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
authUsers?: Array<AuthUser>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dlp file authorizer contact information
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
contractAccount: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Access authorized account type
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
ownerAccountType: AccountType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Offline Access support
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
offlineAccess: boolean;
|
2023-06-07 11:56:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Everyone Access support
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
supportEveryone: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Everyone's Access permission
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
everyonePerm: AuthPermType;
|
2023-04-03 06:29:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DlpFile {
|
|
|
|
/**
|
|
|
|
* Dlp file property
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @since 9
|
|
|
|
*/
|
|
|
|
dlpProperty: DlpProperty;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* add the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @returns { Promise<void> }
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
addDlpLinkFile(linkFileName: string): Promise<void>;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* add the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
2023-03-15 07:06:12 +00:00
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2022-09-29 05:12:28 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
addDlpLinkFile(linkFileName: string, callback: AsyncCallback<void>): void;
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
2022-09-29 05:12:28 +00:00
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
2023-03-15 07:06:12 +00:00
|
|
|
* @returns { Promise<void> }
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
stopDlpLinkFile(linkFileName: string): Promise<void>;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
2023-03-15 07:06:12 +00:00
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
2023-03-15 07:06:12 +00:00
|
|
|
* @param { AsyncCallback<void> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2022-09-29 05:12:28 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
2023-03-15 07:06:12 +00:00
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
stopDlpLinkFile(linkFileName: string, callback: AsyncCallback<void>): void;
|
2023-03-15 07:06:12 +00:00
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
2022-09-29 05:12:28 +00:00
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @returns { Promise<void> }
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
restartDlpLinkFile(linkFileName: string): Promise<void>;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2022-09-29 05:12:28 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
restartDlpLinkFile(linkFileName: string, callback: AsyncCallback<void>): void;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2022-09-29 05:12:28 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @returns { Promise<void> }
|
2022-09-29 05:12:28 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
2023-03-15 07:06:12 +00:00
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2022-09-29 05:12:28 +00:00
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
replaceDlpLinkFile(linkFileName: string): Promise<void>;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* stop the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return -
|
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
replaceDlpLinkFile(linkFileName: string, callback: AsyncCallback<void>): void;
|
2022-09-29 05:12:28 +00:00
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* delete the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @returns { Promise<void> }
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
deleteDlpLinkFile(linkFileName: string): Promise<void>;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* delete the link file of origin dlp file, the link file is implemented through the fuse file system.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {string} linkFileName Indicates the name of link file.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
deleteDlpLinkFile(linkFileName: string, callback: AsyncCallback<void>): void;
|
2022-09-29 05:12:28 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* recover the origin plain file from dlp file.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {number} plainFd Indicates the file descriptor of the origin plain file.
|
|
|
|
* @returns { Promise<void> }
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
recoverDlpFile(plainFd: number): Promise<void>;
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* recover the origin plain file from dlp file.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param {number} plainFd Indicates the file descriptor of the origin plain file.
|
|
|
|
* @param { AsyncCallback<void> } callback
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
recoverDlpFile(plainFd: number, callback: AsyncCallback<void>): void;
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* close the dlp file, when the object never be used.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @returns { Promise<void> }
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
closeDlpFile(): Promise<void>;
|
2023-03-15 07:06:12 +00:00
|
|
|
|
|
|
|
/**
|
2023-04-03 06:29:20 +00:00
|
|
|
* close the dlp file, when the object never be used.
|
2023-03-15 07:06:12 +00:00
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
2023-04-03 06:29:20 +00:00
|
|
|
* @param { AsyncCallback<void> } callback
|
2023-03-15 07:06:12 +00:00
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
2023-04-03 06:29:20 +00:00
|
|
|
* @return -
|
2023-03-15 07:06:12 +00:00
|
|
|
*/
|
2023-04-03 06:29:20 +00:00
|
|
|
closeDlpFile(callback: AsyncCallback<void>): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* generate the dlp file
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} plainTextFd Indicates the file descriptor of the origin plain file.
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @param {DlpProperty} property Indicates the property of the dlp file.
|
|
|
|
* @returns { Promise<DlpFile> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return dlpFile object
|
|
|
|
*/
|
2023-05-24 08:52:55 +00:00
|
|
|
function generateDlpFile(plainTextFd: number, cipherTextFd: number, property: DlpProperty): Promise<DlpFile>;
|
2023-04-03 06:29:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* generate the dlp file
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} plainTextFd Indicates the file descriptor of the origin plain file.
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @param {DlpProperty} property Indicates the property of the dlp file.
|
|
|
|
* @param { AsyncCallback<DlpFile> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return dlpFile object
|
|
|
|
*/
|
|
|
|
function generateDlpFile(
|
|
|
|
plainTextFd: number,
|
|
|
|
cipherTextFd: number,
|
|
|
|
property: DlpProperty,
|
|
|
|
callback: AsyncCallback<DlpFile>
|
|
|
|
): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* open the dlp file, and parse it.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @returns { Promise<DlpFile> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return dlpFile object
|
|
|
|
*/
|
|
|
|
function openDlpFile(cipherTextFd: number): Promise<DlpFile>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* open the dlp file, and parse it.
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @param { AsyncCallback<DlpFile> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return dlpFile object
|
|
|
|
*/
|
|
|
|
function openDlpFile(cipherTextFd: number, callback: AsyncCallback<DlpFile>): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* check whether is dlp file
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @returns { Promise<boolean> }
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
function isDlpFile(cipherTextFd: number): Promise<boolean>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* check whether is dlp file
|
|
|
|
*
|
|
|
|
* @permission ohos.permission.ACCESS_DLP_FILE
|
|
|
|
* @param {number} cipherTextFd Indicates the file descriptor of the dlp file.
|
|
|
|
* @param { AsyncCallback<boolean> } callback
|
|
|
|
* @syscap SystemCapability.Security.DlpPermissionService
|
|
|
|
* @systemapi Hide this for inner system use.
|
|
|
|
* @since 9
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
function isDlpFile(cipherTextFd: number, callback: AsyncCallback<boolean>): void;
|
2022-09-29 05:12:28 +00:00
|
|
|
}
|
|
|
|
export default dlpPermission;
|