1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @addtogroup Privacy 18 * @{ 19 * 20 * @brief Provides sensitive data access management. 21 * 22 * @since 8.0 23 * @version 8.0 24 */ 25 26 /** 27 * @file permission_used_type.h 28 * 29 * @brief Declares enum PermissionUsedType. 30 * 31 * @since 12.0 32 * @version 12.0 33 */ 34 35 #ifndef SECURITY_ACCESSTOKEN_PERMISSION_USED_TYPE_H 36 #define SECURITY_ACCESSTOKEN_PERMISSION_USED_TYPE_H 37 38 namespace OHOS { 39 namespace Security { 40 namespace AccessToken { 41 /** 42 * @brief Permission permission used type values 43 */ 44 typedef enum PermissionUsedTypeValue { 45 /** invalid type */ 46 INVALID_USED_TYPE = -1, 47 /** normal type for permision request */ 48 NORMAL_TYPE, 49 /** picker type for permision request */ 50 PICKER_TYPE, 51 /** security component type for permision request */ 52 SECURITY_COMPONENT_TYPE, 53 /** max of type for no use */ 54 PERM_USED_TYPE_BUTT, 55 } PermissionUsedType; 56 } // namespace AccessToken 57 } // namespace Security 58 } // namespace OHOS 59 60 #endif // SECURITY_ACCESSTOKEN_PERMISSION_USED_TYPE_H