os/security/cryptoservices/certificateandkeymgmt/tcertstore/t_testcertfordeletable.h
Update contrib.
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * CTestCertForDeletable class implementation
25 #ifndef __T_TESTCERTFORDELETABLE_H__
26 #define __T_TESTCERTFORDELETABLE_H__
28 #include "t_certstoreactions.h"
29 #include "t_testactionspec.h"
30 #include <mctkeystore.h>
31 #include <unifiedkeystore.h>
34 * This class tests the addition of a certificate to the store.
36 class CTestCertForDeletable : public CCertStoreTestAction
39 static CTestAction* NewL( RFs& aFs,
40 CConsoleBase& aConsole,
42 const TTestActionSpec& aTestActionSpec);
43 ~CTestCertForDeletable();
44 virtual void PerformAction(TRequestStatus& aStatus);
45 virtual void PerformCancel();
46 virtual void AfterOOMFailure();
50 CTestCertForDeletable(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
51 void ConstructL(const TTestActionSpec& aTestActionSpec);
52 void DoReportAction();
53 void DoCheckResult(TInt aError);
55 void WriteFormat(TCertificateFormat aFormat);
56 void WriteOwnerType();
57 void SetKeyId(TKeyIdentifier& aKeyIdentifier, const TDesC8& aKeyInfo);
58 void SetCertFormatL(const TDesC8& aFormat);
59 void SetCertOwnerTypeL(const TDesC8& aOwnerType);
60 void SetCertLabelL(const TDesC8& aLabel);
61 void SetStoreToUse(const TDesC8& aStoreToUse);
62 void SetDeletable(const TDesC8& aStringValue);
63 void SetSubActionL(const TDesC8& aStringValue);
64 void SetCertificateContentL(const TDesC8& aFileName);
65 void ConstructCertL(const TDesC8& aCert);
67 void TestSerializationL(MCTToken& aToken,
68 TKeyIdentifier* aIssuerKeyId,
69 TKeyIdentifier* aSubjectKeyId,
70 const TInt aCertificateId,
71 const TDesC8* aIssuerHash );
76 ETestNewCSClasswDeletable,
77 ETestOldCSClasswoDeletable,
83 CCertificate* iCertificate;
84 HBufC8* iCertificateURL;
85 HBufC* iCertificateLabel;
86 TCertificateFormat iCertificateFormat;
87 TCertificateOwnerType iOwnerType;
88 TKeyIdentifier iIssuerKeyId;
89 TKeyIdentifier iSubjectKeyId;
94 HBufC8* iCertificateContent;
96 CCTCertInfo* iCertInfo;