os/security/cryptoservices/certificateandkeymgmt/swicertstore/CSWICertStoreToken.h
First public contribution.
2 * Copyright (c) 2004-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 * CSWICertStoreToken class implementation
25 #ifndef __CSWICERTSTORETOKEN_H__
26 #define __CSWICERTSTORETOKEN_H__
28 #include <ct/mcttoken.h>
34 * SWI Cert store token.
36 NONSHARABLE_CLASS(CSWICertStoreToken) : public CBase, public MCTToken
39 CSWICertStoreToken(CCTTokenType& aTokenType);
42 // Implementation of MCTToken
43 virtual MCTTokenType& TokenType();
44 virtual const TDesC& Label();
45 virtual TCTTokenHandle Handle();
47 /// Called by CSWICertStore::DoRelease
48 TBool ReleaseInterface();
51 virtual TInt& ReferenceCount();
52 virtual void DoGetInterface(TUid aRequiredInterface,
53 MCTTokenInterface*& aReturnedInterface,
54 TRequestStatus& aStatus);
55 virtual TBool DoCancelGetInterface();
56 virtual const TDesC& Information(TTokenInformation aRequiredInformation);
59 virtual ~CSWICertStoreToken();
62 CCTTokenType& iTokenType;
64 CSWICertStore* iCertStore;
65 TInt iInterfaceRefCount;