1 /* 2 * Copyright (c) 2023 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 #ifndef ACCESSTOKEN_SERVICE_IPC_INTERFACE_CODE_H 17 #define ACCESSTOKEN_SERVICE_IPC_INTERFACE_CODE_H 18 19 namespace OHOS { 20 namespace Security { 21 namespace AccessToken { 22 /* SAID:3503 */ 23 enum class AccessTokenInterfaceCode { 24 VERIFY_ACCESSTOKEN = 0x0000, 25 GET_DEF_PERMISSION, 26 GET_DEF_PERMISSIONS, 27 GET_REQ_PERMISSIONS, 28 GET_PERMISSION_FLAG, 29 GRANT_PERMISSION, 30 REVOKE_PERMISSION, 31 CLEAR_USER_GRANT_PERMISSION, 32 ALLOC_TOKEN_HAP, 33 TOKEN_DELETE, 34 35 GET_TOKEN_TYPE = 0x0010, 36 CHECK_NATIVE_DCAP, 37 GET_HAP_TOKEN_ID, 38 ALLOC_LOCAL_TOKEN_ID, 39 GET_NATIVE_TOKENINFO, 40 GET_HAP_TOKENINFO, 41 UPDATE_HAP_TOKEN, 42 43 GET_HAP_TOKEN_FROM_REMOTE = 0x0020, 44 GET_ALL_NATIVE_TOKEN_FROM_REMOTE, 45 SET_REMOTE_HAP_TOKEN_INFO, 46 SET_REMOTE_NATIVE_TOKEN_INFO, 47 DELETE_REMOTE_TOKEN_INFO, 48 DELETE_REMOTE_DEVICE_TOKEN, 49 GET_NATIVE_REMOTE_TOKEN, 50 51 DUMP_TOKENINFO = 0x0030, 52 GET_PERMISSION_OPER_STATE, 53 REGISTER_PERM_STATE_CHANGE_CALLBACK, 54 UNREGISTER_PERM_STATE_CHANGE_CALLBACK, 55 RELOAD_NATIVE_TOKEN_INFO, 56 GET_NATIVE_TOKEN_ID, 57 }; 58 } // namespace AccessToken 59 } // namespace Security 60 } // namespace OHOS 61 62 #endif // ACCESSTOKEN_SERVICE_IPC_INTERFACE_CODE_H 63