|
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 * CUnifiedCertStoreWorkingVars class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 #include <e32base.h> |
|
28 #include <mctwritablecertstore.h> |
|
29 class CSHA1; |
|
30 class CCertificate; |
|
31 class CX500DistinguishedName; |
|
32 |
|
33 NONSHARABLE_CLASS(CUnifiedCertStoreWorkingVars) : public CBase |
|
34 { |
|
35 public: |
|
36 CUnifiedCertStoreWorkingVars(); |
|
37 virtual ~CUnifiedCertStoreWorkingVars(); |
|
38 |
|
39 public: |
|
40 /** |
|
41 * This stores the list of Token Types that support the |
|
42 * writable cert store interface. |
|
43 * Used while initializing the store. |
|
44 */ |
|
45 RCPointerArray<CCTTokenTypeInfo> iWritableTokenTypes; |
|
46 /** |
|
47 * This stores the list of Token Types that support the |
|
48 * readable cert store interface. |
|
49 * Used while initializing the store. |
|
50 */ |
|
51 RCPointerArray<CCTTokenTypeInfo> iReadOnlyTokenTypes; |
|
52 |
|
53 /** |
|
54 * Used to point to the array given as argument when listing certificates. |
|
55 */ |
|
56 RMPointerArray<CCTCertInfo>* iCertInfos; |
|
57 /** |
|
58 * Used to point to the filter given as argument when listing certificates. |
|
59 */ |
|
60 const CCertAttributeFilter* iFilter; |
|
61 |
|
62 /** |
|
63 * Used to point to the array of applications given as argument when doing |
|
64 * the following operations : |
|
65 * - Applications |
|
66 * - SetApplicability |
|
67 */ |
|
68 RArray<TUid>* iApplications; |
|
69 |
|
70 /** |
|
71 * Used to point to the certificate info given as argument when doing the following |
|
72 * operations : |
|
73 * - Applications |
|
74 * - IsApplicable |
|
75 * - Trusted |
|
76 * - Retrieve |
|
77 * - Remove |
|
78 * - SetApplicability |
|
79 * - SetTrust |
|
80 */ |
|
81 const CCTCertInfo* iCertInfo; |
|
82 |
|
83 /** |
|
84 * This is used as an index for |
|
85 * - the iWritableTokenTypes array when we are initializing the store. |
|
86 * - the iReadOnlyTokenTypes array when we are initializing the store. |
|
87 */ |
|
88 TInt iIndex; |
|
89 |
|
90 /** The first returned certificate to be added to the array during |
|
91 * a list, or the cert whose issuer DN is currently being compared. */ |
|
92 TInt iCertIndex; |
|
93 |
|
94 /** The required issuer name for a list. */ |
|
95 RPointerArray<TDesC8> iIssuerNames; |
|
96 /** The issuer names in parsed format */ |
|
97 RPointerArray<CX500DistinguishedName> iParsedIssuerNames; |
|
98 /** Hashes of issuer names */ |
|
99 RPointerArray<HBufC8> iHashedIssuerNames; |
|
100 |
|
101 /** A hash of the issuer DN. Used for comparing DNs in URL certificates */ |
|
102 CSHA1* iIssuerHash; |
|
103 |
|
104 /** A descriptor used for storing certs while returning them as |
|
105 CCertificate objects */ |
|
106 HBufC8* iCertDesC; |
|
107 /** A pointer to the modifiable descriptor for returning the |
|
108 CCertificate objects - normally points to to iCertDesC */ |
|
109 TPtr8 iCertDes; |
|
110 |
|
111 /** Pointer to returned certificate pointer */ |
|
112 CCertificate** iReturnedCert; |
|
113 |
|
114 /** Type of the certificate being retrieved */ |
|
115 TCertificateFormat iCertType; |
|
116 }; |