pushmtm/MtmUtilInc/PushAuthenticationUtilities.h
branchRCL_3
changeset 48 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
47:6385c4c93049 48:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:  Authentication utilities.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PUSHAUTHENTICATIONUTILITIES_H
       
    21 #define PUSHAUTHENTICATIONUTILITIES_H
       
    22 
       
    23 // INCLUDE FILES
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 class CPushMtmSettings;
       
    30 class CPushMessage;
       
    31 class CPushMsgEntryBase;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 * Utility class.
       
    37 */
       
    38 class TPushAuthenticationUtil
       
    39     {
       
    40     public: // New functions
       
    41 
       
    42 		/**
       
    43 		* Authenticate the push message.
       
    44 		* @param aMtmSettings The push settings.
       
    45 		* @param aPushMsg The push message.
       
    46 		* @return ETrue if authenticated. EFalse otherwise.
       
    47 		*/
       
    48 		IMPORT_C static TBool AuthenticateMsgL
       
    49 								( 
       
    50 								const CPushMtmSettings& aMtmSettings, 
       
    51 							    const CPushMessage& aPushMsg 
       
    52 								);
       
    53 
       
    54 		/**
       
    55 		* Authenticate the push message.
       
    56 		* @param aMtmSettings The push settings.
       
    57 		* @param aPushMsg The push message.
       
    58 		* @return ETrue if authenticated. EFalse otherwise.
       
    59 		*/
       
    60 		IMPORT_C static TBool AuthenticateMsgL
       
    61 								( 
       
    62 								const CPushMtmSettings& aMtmSettings, 
       
    63 								const CPushMsgEntryBase& aPushMsg 
       
    64 								);
       
    65 
       
    66     };
       
    67 
       
    68 #endif // PUSHAUTHENTICATIONUTILITIES_H
       
    69 
       
    70 // End of file.