sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* CUnifiedCertStoreWorkingVars class implementation
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
@file
|
sl@0
|
22 |
@internalComponent
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
|
sl@0
|
25 |
#include <e32base.h>
|
sl@0
|
26 |
#include <mctwritablecertstore.h>
|
sl@0
|
27 |
class CSHA1;
|
sl@0
|
28 |
class CCertificate;
|
sl@0
|
29 |
class CX500DistinguishedName;
|
sl@0
|
30 |
|
sl@0
|
31 |
NONSHARABLE_CLASS(CUnifiedCertStoreWorkingVars) : public CBase
|
sl@0
|
32 |
{
|
sl@0
|
33 |
public:
|
sl@0
|
34 |
CUnifiedCertStoreWorkingVars();
|
sl@0
|
35 |
virtual ~CUnifiedCertStoreWorkingVars();
|
sl@0
|
36 |
|
sl@0
|
37 |
public:
|
sl@0
|
38 |
/**
|
sl@0
|
39 |
* This stores the list of Token Types that support the
|
sl@0
|
40 |
* writable cert store interface.
|
sl@0
|
41 |
* Used while initializing the store.
|
sl@0
|
42 |
*/
|
sl@0
|
43 |
RCPointerArray<CCTTokenTypeInfo> iWritableTokenTypes;
|
sl@0
|
44 |
/**
|
sl@0
|
45 |
* This stores the list of Token Types that support the
|
sl@0
|
46 |
* readable cert store interface.
|
sl@0
|
47 |
* Used while initializing the store.
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
RCPointerArray<CCTTokenTypeInfo> iReadOnlyTokenTypes;
|
sl@0
|
50 |
|
sl@0
|
51 |
/**
|
sl@0
|
52 |
* Used to point to the array given as argument when listing certificates.
|
sl@0
|
53 |
*/
|
sl@0
|
54 |
RMPointerArray<CCTCertInfo>* iCertInfos;
|
sl@0
|
55 |
/**
|
sl@0
|
56 |
* Used to point to the filter given as argument when listing certificates.
|
sl@0
|
57 |
*/
|
sl@0
|
58 |
const CCertAttributeFilter* iFilter;
|
sl@0
|
59 |
|
sl@0
|
60 |
/**
|
sl@0
|
61 |
* Used to point to the array of applications given as argument when doing
|
sl@0
|
62 |
* the following operations :
|
sl@0
|
63 |
* - Applications
|
sl@0
|
64 |
* - SetApplicability
|
sl@0
|
65 |
*/
|
sl@0
|
66 |
RArray<TUid>* iApplications;
|
sl@0
|
67 |
|
sl@0
|
68 |
/**
|
sl@0
|
69 |
* Used to point to the certificate info given as argument when doing the following
|
sl@0
|
70 |
* operations :
|
sl@0
|
71 |
* - Applications
|
sl@0
|
72 |
* - IsApplicable
|
sl@0
|
73 |
* - Trusted
|
sl@0
|
74 |
* - Retrieve
|
sl@0
|
75 |
* - Remove
|
sl@0
|
76 |
* - SetApplicability
|
sl@0
|
77 |
* - SetTrust
|
sl@0
|
78 |
*/
|
sl@0
|
79 |
const CCTCertInfo* iCertInfo;
|
sl@0
|
80 |
|
sl@0
|
81 |
/**
|
sl@0
|
82 |
* This is used as an index for
|
sl@0
|
83 |
* - the iWritableTokenTypes array when we are initializing the store.
|
sl@0
|
84 |
* - the iReadOnlyTokenTypes array when we are initializing the store.
|
sl@0
|
85 |
*/
|
sl@0
|
86 |
TInt iIndex;
|
sl@0
|
87 |
|
sl@0
|
88 |
/** The first returned certificate to be added to the array during
|
sl@0
|
89 |
* a list, or the cert whose issuer DN is currently being compared. */
|
sl@0
|
90 |
TInt iCertIndex;
|
sl@0
|
91 |
|
sl@0
|
92 |
/** The required issuer name for a list. */
|
sl@0
|
93 |
RPointerArray<TDesC8> iIssuerNames;
|
sl@0
|
94 |
/** The issuer names in parsed format */
|
sl@0
|
95 |
RPointerArray<CX500DistinguishedName> iParsedIssuerNames;
|
sl@0
|
96 |
/** Hashes of issuer names */
|
sl@0
|
97 |
RPointerArray<HBufC8> iHashedIssuerNames;
|
sl@0
|
98 |
|
sl@0
|
99 |
/** A hash of the issuer DN. Used for comparing DNs in URL certificates */
|
sl@0
|
100 |
CSHA1* iIssuerHash;
|
sl@0
|
101 |
|
sl@0
|
102 |
/** A descriptor used for storing certs while returning them as
|
sl@0
|
103 |
CCertificate objects */
|
sl@0
|
104 |
HBufC8* iCertDesC;
|
sl@0
|
105 |
/** A pointer to the modifiable descriptor for returning the
|
sl@0
|
106 |
CCertificate objects - normally points to to iCertDesC */
|
sl@0
|
107 |
TPtr8 iCertDes;
|
sl@0
|
108 |
|
sl@0
|
109 |
/** Pointer to returned certificate pointer */
|
sl@0
|
110 |
CCertificate** iReturnedCert;
|
sl@0
|
111 |
|
sl@0
|
112 |
/** Type of the certificate being retrieved */
|
sl@0
|
113 |
TCertificateFormat iCertType;
|
sl@0
|
114 |
};
|