2 * Copyright (c) 2006-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 * plugin extended characteristic definition
26 #ifndef __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
27 #define __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
30 #include <cryptospi/cryptoparams.h>
36 The characteristics associated with the plugin implementation
39 NONSHARABLE_CLASS(CExtendedCharacteristics) : public CBase
43 IMPORT_C static CExtendedCharacteristics* NewL(TInt aAvailableConcurrency,
46 IMPORT_C void AddCharacteristicL(const TInt value, TUid aUid);
47 IMPORT_C void AddCharacteristicL(const TDesC8& value, TUid aUid);
49 IMPORT_C ~CExtendedCharacteristics();
52 Get the extended characteristic for this UID;
53 @param aUid The UID of the extended characteristic
54 @param aCharacteristics The value of the extended characteristic
56 IMPORT_C TInt GetTIntCharacteristicL(TUid aUid) const;
57 IMPORT_C const TDesC8& GetTDesC8CharacteristicL(TUid aUid) const;
60 Retrieve all the extended characteristics
62 IMPORT_C const CCryptoParams* ListExtendedCharacteristics() const;
65 CExtendedCharacteristics();
66 void ConstructL(TInt aAvailableConcurrency, TBool aExclusiveUse);
69 The extended characteristics list
71 CCryptoParams* iExtCharacteristics;
74 #endif //__CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__