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 |
* FILECERTSTOREMAPPING.H
|
sl@0
|
16 |
* CFileCertStoreMapping class implementation
|
sl@0
|
17 |
*
|
sl@0
|
18 |
*/
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
@internalTechnology
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
|
sl@0
|
26 |
#ifndef __FILECERTSTOREMAPPING_H__
|
sl@0
|
27 |
#define __FILECERTSTOREMAPPING_H__
|
sl@0
|
28 |
|
sl@0
|
29 |
#include <e32base.h>
|
sl@0
|
30 |
#include <s32std.h>
|
sl@0
|
31 |
#include <ct.h>
|
sl@0
|
32 |
#include <mctcertstore.h>
|
sl@0
|
33 |
|
sl@0
|
34 |
/**
|
sl@0
|
35 |
* This class is used to associate an entry with the TStreamId of the stream
|
sl@0
|
36 |
* where the data of the certificate is stored.
|
sl@0
|
37 |
*/
|
sl@0
|
38 |
class CFileCertStoreMapping : public CBase
|
sl@0
|
39 |
{
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
static CFileCertStoreMapping* NewL();
|
sl@0
|
42 |
static CFileCertStoreMapping* NewLC();
|
sl@0
|
43 |
void ConstructL();
|
sl@0
|
44 |
CFileCertStoreMapping();
|
sl@0
|
45 |
~CFileCertStoreMapping();
|
sl@0
|
46 |
/**
|
sl@0
|
47 |
* Sets the iEntry member. If there is already an entry, it is deleted.
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
void SetEntry(CCTCertInfo* aCertInfo);
|
sl@0
|
50 |
void SetId(TStreamId aId);
|
sl@0
|
51 |
CCTCertInfo* Entry() const;
|
sl@0
|
52 |
TStreamId Id() const;
|
sl@0
|
53 |
void ExternalizeL(RWriteStream& aStream) const;
|
sl@0
|
54 |
const RArray<TUid>& CertificateApps() const;
|
sl@0
|
55 |
void SetCertificateApps(RArray<TUid>* aCertificateApps);
|
sl@0
|
56 |
TBool IsApplicable(const TUid& aApplication) const;
|
sl@0
|
57 |
TBool Trusted() const;
|
sl@0
|
58 |
void SetTrusted(TBool aTrusted);
|
sl@0
|
59 |
void SetTempRemoved(TBool aFlag);
|
sl@0
|
60 |
TBool IsTempRemoved();
|
sl@0
|
61 |
|
sl@0
|
62 |
private:
|
sl@0
|
63 |
CCTCertInfo* iEntry;
|
sl@0
|
64 |
RArray<TUid>* iCertificateApps;
|
sl@0
|
65 |
TBool iTrusted;
|
sl@0
|
66 |
/**
|
sl@0
|
67 |
* The id of the stream where the certificate data is stored.
|
sl@0
|
68 |
*/
|
sl@0
|
69 |
TStreamId iId;
|
sl@0
|
70 |
TBool iTempRemoved;
|
sl@0
|
71 |
};
|
sl@0
|
72 |
|
sl@0
|
73 |
#endif
|