installationservices/swi/source/sisregistry/server/siscontrollerverifier.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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: 
       
    15 * @file
       
    16 * CSisControllerVerifier class definition
       
    17 * @released
       
    18 * @internalComponent
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef __SISCONTROLLERVERIFIER_H__
       
    25 #define __SISCONTROLLERVERIFIER_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <swi/msisuihandlers.h>
       
    29 
       
    30 // Forward Declarations
       
    31 class CX509Certificate;
       
    32 
       
    33 namespace Swi
       
    34 {
       
    35 
       
    36 // Swi: Forward Declarations
       
    37 class CDesDataProvider;
       
    38 class CSecurityManager;
       
    39 
       
    40 namespace Sis
       
    41 	{
       
    42 	// Swi::Sis: Forward Declarations
       
    43 	class CController;
       
    44 	}
       
    45 
       
    46 
       
    47 /*
       
    48  * This class is used to handle asyncronous function call to CSecurityManager
       
    49  * to verify the controller.
       
    50  * 
       
    51  * @internalComponent
       
    52  * @released
       
    53  */
       
    54 class CSisControllerVerifier: public CActive
       
    55 	{
       
    56 public:
       
    57 	static CSisControllerVerifier* NewL(const RMessage2& aMessage);
       
    58 	
       
    59 	virtual ~CSisControllerVerifier();
       
    60 
       
    61 public: // from CActive 
       
    62 	void RunL();
       
    63 	void DoCancel();
       
    64 	TInt RunError(TInt aError);	
       
    65 
       
    66 public:
       
    67 	void VerifyControllerL(RPointerArray<HBufC8>& aControllers);
       
    68 	
       
    69 private:
       
    70 	void ConstructL();
       
    71 
       
    72 	void VerifyControllerL( HBufC8* aRawController);
       
    73 	CSisControllerVerifier(const RMessage2& aMessage);
       
    74 	void CompleteRequestL();
       
    75 
       
    76 private:
       
    77 	const RMessage2&							iMessage;
       
    78 	TBool 										isVerified;
       
    79 	CSecurityManager*							iSecurityManager;
       
    80 	Sis::CController*							iController;
       
    81 	CDesDataProvider*							iDesProvider;
       
    82 
       
    83 	TSignatureValidationResult 					iResultOut;
       
    84 	RPointerArray<CPKIXValidationResultBase> 	iPkixResultsOut;
       
    85 	RPointerArray<CX509Certificate> 			iCertsOut;
       
    86 	RPointerArray<CX509Certificate> 			iX509RootCertArray;
       
    87 	TCapabilitySet 								iCapabilitySetOut;
       
    88 	TBool	 									iAllowUnsigned;
       
    89 	TBool 										iIsEmbedded;
       
    90 	TInt										iCurrentController;
       
    91 	RPointerArray<HBufC8>* 						iControllers;
       
    92 	};
       
    93 }
       
    94 
       
    95 #endif // __SISCONTROLLERVERIFIER_H__