os/security/cryptoservices/filebasedcertificateandkeystores/source/generic/common/fstokencliserv.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 * Shared client/server definitions
25 #ifndef __FSTOKENCLISERV_H__
26 #define __FSTOKENCLISERV_H__
29 #include "tokentypesenum.h"
31 const TUid KUidFSTokenServer = {0x101F72A6};
34 // Classes provide static lookup for tokens supported by the filetokens server
35 // According to either description (string) or UID
37 /** Stores the _LIT description of each token with its associated ETokenEnum. */
38 class RSupportedTokensArray : public TFixedArray<const TDesC*, ETotalTokensSupported>
41 RSupportedTokensArray();
44 /** Stores the UID of each token type against the associated ETokenEnum. */
45 class RTokenTypeUIDLookup : public TFixedArray<TInt, ETotalTokensSupported>
48 RTokenTypeUIDLookup();
51 // Client server protocol major version
54 const TInt KFSProtolVersion = 2;
56 /** Request message enumeration between client and server. */
70 // For MCTWritableCertStore
73 ESetApplicability = 18,
80 // For MCTKeyStoreManager
82 ECancelCreateKey = 53,
84 ECancelImportKey = 55,
85 EImportEncryptedKey = 56,
86 ECancelImportEncryptedKey = 57,
88 ECancelExportKey = 59,
89 EExportEncryptedKey = 60,
90 ECancelExportEncryptedKey = 61,
93 EOpenKeyRepudiableRSASign = 64,
94 EOpenKeyRepudiableDSASign = 65,
98 ERepudiableDSASign = 69,
100 ERepudiableRSASign = 71,
109 EChangePassphrase = 80,
110 ECancelChangePassphrase = 81,
111 EUnblockPassphrase = 82,
112 ECancelUnblockPassphrase = 83,
114 ECancelAuthOpen = 85,
116 EAuthTimeRemaining = 87,
121 ESetManagementPolicy = 92,
124 // For server OOM testing
126 EIncHeapFailPoint = 101,
127 EResetHeapFail = 102,
135 EGetApplication = 124,
137 #ifdef SYMBIAN_AUTH_SERVER
139 EUseNewKeyServer = 125,
140 ECreateUserKey = 126,
141 EImportUserKey = 127,
142 EImportEncryptedUserKey = 128,
143 ESetAuthenticationPolicy = 129,
144 EGetAuthenticationPolicy = 130,
146 #endif // SYMBIAN_AUTH_SERVER
152 #endif // __FILECERTSTORECLISERV_H__