secureswitools/swisistools/source/rscparser/apsecutils.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // apsecutils.h
       
    15 //
       
    16 
       
    17 /** 
       
    18 * @file apsecutils.h
       
    19 *
       
    20 * @internalComponent
       
    21 * @released
       
    22 */
       
    23 
       
    24 #ifndef __APSECUTILS_H__
       
    25 #define __APSECUTILS_H__
       
    26 
       
    27 #include "commontypes.h"
       
    28 /** AppArc security utils.
       
    29 
       
    30 This is a set of security related methods for apparc internal usage.
       
    31 
       
    32 */
       
    33 class CApaSecurityUtils
       
    34     {
       
    35 public:
       
    36     static TInt CheckAppSecurity( const Ptr16& aAppFilename, 
       
    37                                            TBool& aHasWriteDeviceDataCap, 
       
    38                                            TBool& aIsSidProtected,
       
    39                                            const std::string& aDerivedPath);
       
    40 
       
    41 	static TInt GetInfo(std::string& aFilename);
       
    42 
       
    43 private:
       
    44     inline static TBool IsSidProtected( const TUint32 aSid );
       
    45 	inline static TBool HasWriteDeviceDataCap( const TUint32 aCapability );
       
    46 
       
    47 private:
       
    48 	static TUint32 iCapabilities;
       
    49 	static TUint32 iSecureID;
       
    50     };
       
    51     
       
    52 #endif // __APSECUTILS_H__