Revise doxygen
[platform/framework/native/appfw.git] / src / server / appfw / inc / FSec_PrivilegeManagerServer.h
1 //
2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file        FSec_PrivilegeManagerServer.h
19  * @brief       This is the header file for the _PrivilegeManagerServer.
20  * This header file contains the declarations of the _PrivilegeManagerServer.
21  */
22
23 #ifndef _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_
24 #define _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_
25
26 #include <FOspConfig.h>
27
28 #include "FSec_AccessControlTypes.h"
29
30 namespace Tizen { namespace Base { namespace Collection
31 {
32 class IList;
33 }}}
34
35 namespace Tizen { namespace Base
36 {
37 class String;
38 }}
39
40 class PrivilegeService;
41
42 namespace Tizen { namespace Security
43 {
44
45 class ISecretKey;
46
47 /**
48  * @class       _PrivilegeManagerServer
49  * @brief       This class provides a way to manage the privilege information.
50  * @since       2.1
51  *
52  * This class provides a way to manage the privilege information for privilege service.
53  *
54  */
55
56 class _OSP_EXPORT_ _PrivilegeManagerServer
57 {
58
59 private:
60
61         _PrivilegeManagerServer(void);
62         virtual ~_PrivilegeManagerServer(void);
63
64         static result RetrievePrivilege(const Tizen::App::AppId& appId, Tizen::Base::String* pEncryptedBitwise, Tizen::Base::String* pHmac, Tizen::Base::Collection::ArrayList*& pPrivilegeList);
65         static result GenerateVisibilityString(Tizen::App::AppId appId, Tizen::Base::String* pEncryptedVisibility, Tizen::Base::String* pHmac);
66         static result GetEncryptedVisibility(int visibility, Tizen::Base::String& encryptedVisibility);
67         static result GetChecksum(Tizen::App::AppId appId, int visibility, Tizen::Base::String& checksum);
68
69 private:
70
71         static ISecretKey* GetDeviceUniqueKeyN(void);
72         friend class ::PrivilegeService;
73
74 };  // _PrivilegeManagerServer
75
76 }} // Tizen::Security
77
78 #endif // _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_