Merge "Enable the privacy item for callhistory privilege" into tizen_2.2
[platform/framework/native/appfw.git] / src / security / FSec_PrivilegeInfo.h
index f6256a7..0263d0d 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -30,6 +29,8 @@
 namespace Tizen { namespace Security
 {
 
+class ISecretKey;
+
 /**
  * @class      _PrivilegeInfo
  * @brief      This class provides a basic information of privilege manager.
@@ -195,6 +196,9 @@ private:
        result VerifyIntegrity(const Tizen::App::AppId& appId, const byte* targetBitwisePrivilege, const Tizen::Base::String& storedChecksum, int length, int visibility, const Tizen::Base::String& storedVisibilityChecksum);
        result VerifyIntegrityEx(const Tizen::App::AppId& appId, const byte* targetBitwisePrivilege, const Tizen::Base::String& storedChecksum, int length);
 
+       static int GetPrivilegeLevel(const Tizen::Base::String& privilegeLevel);
+       static ISecretKey* GetDeviceUniqueKeyN(void);
+
        _PrivilegeInfo(const _PrivilegeInfo& rhs);
        _PrivilegeInfo& operator =(const _PrivilegeInfo& rhs);
 
@@ -203,7 +207,7 @@ private:
        int __apiVisibility;
        byte __bitwisePrivilege[MAX_BITWISE_PRIV_SIZE];
        int __bitwiseLength;
-       Tizen::Base::Collection::ArrayList __privilegeList;
+       Tizen::Base::Collection::HashMap __privilegeList;
 
 };  // _PrivilegeInfo