|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Project definition file for DevTokenClient |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __DEVTOKENCLISERV_H__ |
|
21 #define __DEVTOKENCLISERV_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "DevTokenTypesEnum.h" |
|
25 |
|
26 const TUid KUidDevTokenServer = {0x101FB66C}; |
|
27 |
|
28 |
|
29 // Classes provide static lookup for tokens supported by the device tokens server |
|
30 // According to either description (string) or UID |
|
31 |
|
32 /** |
|
33 * Stores the _LIT description of each token with its associated ETokenEnum. |
|
34 * |
|
35 * @lib DevTokenClient.dll |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class RSupportedTokensArray : public TFixedArray<const TDesC*, ETotalTokensSupported> |
|
39 { |
|
40 public: |
|
41 RSupportedTokensArray(); |
|
42 }; |
|
43 |
|
44 |
|
45 /** |
|
46 * Stores the UID of each token type against the associated ETokenEnum. |
|
47 * |
|
48 * @lib DevTokenClient.dll |
|
49 * @since S60 v3.2 |
|
50 */ |
|
51 class RTokenTypeUIDLookup : public TFixedArray<TInt, ETotalTokensSupported> |
|
52 { |
|
53 public: |
|
54 RTokenTypeUIDLookup(); |
|
55 }; |
|
56 |
|
57 // Client server protocol major version |
|
58 // 1 => 8.0 - 8.1 |
|
59 // 2 => 9.0 onwards |
|
60 const TInt KDevTokenProtolVersion = 2; |
|
61 |
|
62 // Request message enumeration between client and server. |
|
63 enum TDevTokenMessages |
|
64 { |
|
65 EIdle = 0, |
|
66 ESupportsToken = 1, |
|
67 // For MCertStore |
|
68 EListCerts = 10, |
|
69 EGetCert = 11, |
|
70 EApplications = 12, |
|
71 EIsApplicable = 13, |
|
72 ETrusted = 14, |
|
73 ERetrieve = 15, |
|
74 |
|
75 // For MCTWritableCertStore |
|
76 EAddCert = 16, |
|
77 ERemoveCert = 17, |
|
78 ESetApplicability = 18, |
|
79 ESetTrust = 19, |
|
80 // For MKeyStore |
|
81 EListKeys = 50, |
|
82 EGetKeyInfo = 51, |
|
83 // For MCTKeyStoreManager |
|
84 ECreateKey = 52, |
|
85 ECancelCreateKey = 53, |
|
86 EImportKey = 54, |
|
87 ECancelImportKey = 55, |
|
88 EImportEncryptedKey = 56, |
|
89 ECancelImportEncryptedKey = 57, |
|
90 EExportKey = 58, |
|
91 ECancelExportKey = 59, |
|
92 EExportEncryptedKey = 60, |
|
93 ECancelExportEncryptedKey = 61, |
|
94 EDeleteKey = 62, |
|
95 |
|
96 EOpenKeyRepudiableRSASign = 64, |
|
97 EOpenKeyRepudiableDSASign = 65, |
|
98 EOpenKeyDecrypt = 66, |
|
99 EOpenKeyAgree = 67, |
|
100 ECloseObject = 68, |
|
101 ERepudiableDSASign = 69, |
|
102 ECancelDSASign = 70, |
|
103 ERepudiableRSASign = 71, |
|
104 ECancelRSASign = 72, |
|
105 EExportPublic = 73, |
|
106 EDecryptText = 74, |
|
107 ECancelDecrypt = 75, |
|
108 EDHPublicKey = 76, |
|
109 EDHAgree = 77, |
|
110 ECancelDH = 78, |
|
111 |
|
112 |
|
113 EGetKeyLength = 90, |
|
114 ESetUsePolicy = 91, |
|
115 ESetManagementPolicy = 92, |
|
116 |
|
117 // For server OOM testing |
|
118 EStartOOMTest = 100, |
|
119 EIncHeapFailPoint = 101, |
|
120 EResetHeapFail = 102, |
|
121 EAllocCount = 103, |
|
122 |
|
123 //For Trusted Site Store |
|
124 EAddTrustSite = 125, |
|
125 EIsTrustedSite = 126, |
|
126 EGetTrustedSites = 127, |
|
127 EAddForgivenSite = 128, |
|
128 ERemoveForgivenSite = 129, |
|
129 EIsOutOfDateAllowed = 130, |
|
130 }; |
|
131 |
|
132 #endif // __DEVTOKENCLISERV_H__ |
|
133 |
|
134 //EOF |
|
135 |