2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
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.
23 #ifndef _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_
24 #define _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_
26 #include <FOspConfig.h>
28 #include "FSec_AccessControlTypes.h"
30 namespace Tizen { namespace Base { namespace Collection
35 namespace Tizen { namespace Base
40 class PrivilegeService;
42 namespace Tizen { namespace Security
48 * @class _PrivilegeManagerServer
49 * @brief This class provides a way to manage the privilege information.
52 * This class provides a way to manage the privilege information for privilege service.
56 class _OSP_EXPORT_ _PrivilegeManagerServer
61 _PrivilegeManagerServer(void);
62 virtual ~_PrivilegeManagerServer(void);
64 static result RetrievePrivilege(const Tizen::App::AppId& appId, Tizen::Base::String* pEncryptedBitwise, Tizen::Base::String* pHmac, Tizen::Base::Collection::ArrayListT < Tizen::Base::String >*& 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);
71 static ISecretKey* GetDeviceUniqueKeyN(void);
72 friend class ::PrivilegeService;
74 }; // _PrivilegeManagerServer
78 #endif // _FSEC_INTERNAL_PRIVILEGE_MANAGER_SERVER_H_