• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /**
17  * @addtogroup Privacy
18  * @{
19  *
20  * @brief Provides sensitive permissions access management.
21  *
22  * @since 8.0
23  * @version 8.0
24  */
25 
26 /**
27  * @file sec_comp_enhance_data.h
28  *
29  * @brief Declares security component enhance deposit data struct.
30  *
31  * @since 10.0
32  * @version 10.0
33  */
34 
35 #ifndef INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
36 #define INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
37 
38 #include "access_token.h"
39 #include "iremote_object.h"
40 
41 namespace OHOS {
42 namespace Security {
43 namespace AccessToken {
44 /**
45  * @brief Declares security component enhance data struct only for security component service
46  */
47 struct SecCompEnhanceData {
48     /**
49      * callback remote object for checking security component valid.
50      */
51     sptr<IRemoteObject> callback;
52     /**
53      * pid for which used security component.
54      */
55     int32_t pid;
56     /**
57      * token id for which used security component.
58      */
59     AccessTokenID token;
60     /**
61      * challenge for register.
62      */
63     uint64_t challenge;
64 };
65 
66 } // namespace AccessToken
67 } // namespace Security
68 } // namespace OHOS
69 #endif // INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
70 
71