os/security/cryptoservices/certificateandkeymgmt/tx509/ValidateTest.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 1998-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 * CValidateTest class implementation
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __TWTLSCERTVAL_H
    26 #define __TWTLSCERTVAL_H
    27 
    28 #include "tcertutils.h"
    29 #include "t_testaction.h"
    30 
    31 class CValidateTest : public CTestAction
    32 	{
    33 public:
    34 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, 
    35 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    36 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
    37 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    38 	void TestValidation(TRequestStatus& aStatus);
    39 	~CValidateTest();
    40 
    41 public:
    42 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
    43 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
    44 	virtual void PerformAction(TRequestStatus& aStatus);
    45 
    46 	virtual void DoReportAction();
    47 	virtual void DoCheckResult(TInt aError);
    48 
    49 private:
    50 	CValidateTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    51 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    52 	TUint8 ConvertByteA2H(TUint8 aInput);
    53 
    54 private:
    55 
    56 private:
    57 	RFs& iFs;
    58 	TBuf<128> iFilename;
    59 	TBuf8<20> iResultKeyID; // expected result
    60 	TBool iValid;
    61 	};
    62 
    63 #endif