os/security/cryptoservices/certificateandkeymgmt/tadditionalstores/tadditionalstoremapping.h
First public contribution.
2 * Copyright (c) 1998-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 * FILECERTSTOREMAPPING.H
16 * CFileCertStoreMapping class implementation
26 #ifndef __FILECERTSTOREMAPPING_H__
27 #define __FILECERTSTOREMAPPING_H__
32 #include <mctcertstore.h>
35 * This class is used to associate an entry with the TStreamId of the stream
36 * where the data of the certificate is stored.
38 class CFileCertStoreMapping : public CBase
41 static CFileCertStoreMapping* NewL();
42 static CFileCertStoreMapping* NewLC();
44 CFileCertStoreMapping();
45 ~CFileCertStoreMapping();
47 * Sets the iEntry member. If there is already an entry, it is deleted.
49 void SetEntry(CCTCertInfo* aCertInfo);
50 void SetId(TStreamId aId);
51 CCTCertInfo* Entry() const;
53 void ExternalizeL(RWriteStream& aStream) const;
54 const RArray<TUid>& CertificateApps() const;
55 void SetCertificateApps(RArray<TUid>* aCertificateApps);
56 TBool IsApplicable(const TUid& aApplication) const;
57 TBool Trusted() const;
58 void SetTrusted(TBool aTrusted);
59 void SetTempRemoved(TBool aFlag);
60 TBool IsTempRemoved();
64 RArray<TUid>* iCertificateApps;
67 * The id of the stream where the certificate data is stored.