contextframework/cfw/inc/cfserver/CFSecurityChecker.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Security Checker interface for CF.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_CFSECURITYCHECKER_H
       
    20 #define M_CFSECURITYCHECKER_H
       
    21 
       
    22 class RThread;
       
    23 
       
    24 /**
       
    25 * Interface for security checker.
       
    26 */
       
    27 class MCFSecurityChecker
       
    28     {
       
    29     public:
       
    30     
       
    31         /**
       
    32         * Checks client thread security.
       
    33         * Normal CF implementation lets current CF thread pass all
       
    34         * security checks. Implementation for test cases can fail whenever
       
    35         * the test case requires.
       
    36         *
       
    37         * @since S60 4.0
       
    38         * @param aClientThread Action identifier.
       
    39         * @param aSecurityPolicy Security level for the thread.
       
    40         * @return ETrue if the security check is passed.
       
    41         */
       
    42         virtual TBool CheckClientSecurity( const RThread& aClientThread,
       
    43             const TSecurityPolicy& aSecurityPolicy ) = 0;
       
    44 
       
    45     protected:
       
    46     
       
    47         // Deny destruction through this class
       
    48         virtual ~MCFSecurityChecker(){};
       
    49     };
       
    50 
       
    51 #endif //M_CFSECURITYCHECKER_H