os/security/cryptoservices/certificateandkeymgmt/swicertstore/CSWICertStoreEntry.h
Update contrib.
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 * CSWICertStoreEntry class implementation
25 #ifndef __CSWICERTSTOREENTRY_H__
26 #define __CSWICERTSTOREENTRY_H__
30 #include <swicertstore.h>
36 * This class is used to associate an entry with the TStreamId of the stream
37 * where the data of the certificate is stored.
39 NONSHARABLE_CLASS(CSWICertStoreEntry) : public CBase
42 static CSWICertStoreEntry* NewL(const CCTCertInfo& aCertInfo,const RArray<TUid>& aCertificateApps,TBool aTrusted,TStreamId aDataStreamId,const TCertMetaInfo& aCertMetaInfo,TInt aStoreIndex);
44 /// Read a CSWICertStoreEntry from a stream.
45 static CSWICertStoreEntry* NewLC(RReadStream& aStream, MCTToken& aToken, TInt aCertIndex, TInt aStoreIndex = 0);
47 virtual ~CSWICertStoreEntry();
50 const CCTCertInfo& CertInfo() const;
51 TStreamId DataStreamId() const;
52 const RArray<TUid>& CertificateApps() const;
53 TBool IsApplicable(const TUid& aApplication) const;
54 TBool Trusted() const;
55 const TCertMetaInfo& CertMetaInfo() const;
56 //returns the store index to which the entry belongs
57 TInt StoreIndex() const;
60 CSWICertStoreEntry(TInt aStoreIndex = 0);
61 void ConstructL(const CCTCertInfo& aCertInfo,const RArray<TUid>& aCertificateApps,TBool aTrusted,TStreamId aDataStreamId,const TCertMetaInfo& aCertMetaInfo);
62 void InternalizeL(RReadStream& aStream, MCTToken& aToken, TInt aCertIndex);
65 CCTCertInfo* iCertInfo;
66 RArray<TUid> iCertificateApps;
68 TStreamId iDataStreamId;
69 TCertMetaInfo iCertMetaInfo;
70 //represents the store in which the certificate entry resides