|
1 /* |
|
2 * Copyright (c) 2006-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: Keep all constanece within WSTar Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 #ifndef CONSPLUGIN_H |
|
28 #define CONSPLUGIN_H |
|
29 |
|
30 #include "senpointermap.h" |
|
31 #include "SenXmlElement.h" |
|
32 |
|
33 typedef RSenPointerMap<TDesC8, TInt> RMapInt; |
|
34 typedef RSenPointerMap<TDesC8, TDesC8> RMapDescriptors; |
|
35 |
|
36 |
|
37 //global |
|
38 const TInt KSizeOfMD5 = 16; |
|
39 const TInt KBase64SizeOfMD5 = 24;//16 * 1,5 |
|
40 |
|
41 |
|
42 |
|
43 namespace WSStarConfig |
|
44 { |
|
45 _LIT8(KFrameworkVersion, "1.0"); |
|
46 _LIT8(KFrameworkXMLNS, "urn:com.nokia.ws.wsstar.config.1.0"); |
|
47 _LIT8(KFrameworkCue, "com.nokia.ws.wsstar.WSStarFramework"); |
|
48 _LIT8(KFrameworkLocalName, "Framework"); |
|
49 _LIT8(KHandlerLocalName, "Handler"); |
|
50 _LIT8(KNameAttr, "name"); |
|
51 _LIT8(KDeviceIdLocalName, "DeviceId"); |
|
52 |
|
53 _LIT8(KClassAttr, "class"); |
|
54 _LIT8(KVersionAttr, "version"); |
|
55 _LIT8(KEnveloperValue, "urn:com.nokia.ws.wsstar.handler.enveloper:1.0"); |
|
56 _LIT8(KRegisterValue, "urn:com.nokia.ws.wsstar.handler.register:1.0"); |
|
57 _LIT8(KServiceUpdateValue, "urn:com.nokia.ws.wsstar.handler.serviceUpdate:1.0"); |
|
58 _LIT8(KCredentialCollectorValue, "urn:com.nokia.ws.wsstar.handler.credentialCollector:1.0"); |
|
59 _LIT8(KAddressingValue, "urn:com.nokia.ws.wsstar.handler.addressing:1.0"); |
|
60 _LIT8(KValidateValue, "urn:com.nokia.ws.wsstar.handler.validate:1.0"); |
|
61 _LIT8(KSecurityValue, "urn:com.nokia.ws.wsstar.handler.security:1.0"); |
|
62 _LIT8(KPassportValue, "urn:com.nokia.ws.wsstar.handler.passport:1.0"); |
|
63 _LIT8(KPolicyValue, "urn:com.nokia.ws.wsstar.handler.policy:1.0"); |
|
64 _LIT8(KCoBrandingValue, "urn:com.nokia.ws.wsstar.handler.cobranding:1.0");//co-branding |
|
65 } |
|
66 |
|
67 namespace WSStarSession |
|
68 { |
|
69 |
|
70 //FAULTS |
|
71 _LIT8( KErrorLayer, "KErrorLayer"); |
|
72 enum TFaultLayer |
|
73 { |
|
74 EAddressing, |
|
75 ETrust |
|
76 }; |
|
77 |
|
78 |
|
79 |
|
80 const TInt KSubmitStateOK = 1; |
|
81 const TInt KSubmitStateInvalidCredentials = 2; |
|
82 const TInt KSubmitStateRevalidationAttempted = 3; |
|
83 |
|
84 //in seconds |
|
85 const TInt KMaxTimeForRetry = 5; |
|
86 const TInt KCounterMax = 3; |
|
87 const TInt KMaxHttpTimeOut = 60; |
|
88 |
|
89 } |
|
90 namespace WSStarSessionConsumer |
|
91 { |
|
92 _LIT8(KFaultInvalidRelatesToTag, "Fault.WS-Addressing : InvalidMessageInformationHeader in wsa:RelatesTo Detail: Invalid value"); |
|
93 _LIT8(KFaultInvalidToTag, "Fault.WS-Addressing : InvalidMessageInformationHeader in wsa:To Detail: Invalid value"); |
|
94 } |
|
95 |
|
96 namespace WSStarContextKeys |
|
97 { |
|
98 //MESSAGE KEYS |
|
99 //--keys for enveloper handler |
|
100 _LIT8( KSoapVersion, "SOAPver"); |
|
101 _LIT8( KBody, "Body"); |
|
102 _LIT8( KBodyElement, "BodyElement"); |
|
103 |
|
104 //--keys for enveloper handler |
|
105 //passort is enabled only berween C and STS |
|
106 _LIT8( KPassportEnabled, "PassportEnabled"); |
|
107 |
|
108 //--keys for addressing handler |
|
109 _LIT8( KAddressingVersion, "AddressingVer"); |
|
110 _LIT8( KTo, "To"); |
|
111 _LIT8( KMessageID, "MessageID"); |
|
112 _LIT8( KRelatesTo, "RelatesTo"); |
|
113 _LIT8( KAction, "Action"); |
|
114 _LIT8( KResponseAction, "ResponseAction"); |
|
115 _LIT8( KReplyTo, "ReplyTo"); |
|
116 _LIT8( KReplyToDeviceAddress, "ReplyToDeviceAddress"); |
|
117 _LIT8( KFrom, "From"); |
|
118 _LIT8( KFaultTo, "FaultTo"); |
|
119 _LIT8( KMwsNamespace, "MwsNamespace"); |
|
120 |
|
121 |
|
122 //--keys for credential handler |
|
123 _LIT8( KSecurityToken, "SecurityToken"); |
|
124 _LIT8( KSecurityTokenBackup, "SecurityTokenBackup"); |
|
125 _LIT8( KMTIsReplacedBySCT, "MTIsReplacedBySCT"); |
|
126 _LIT8( KTimestampCreated, "Created"); |
|
127 _LIT8( KTimestampExpires, "Expires"); |
|
128 _LIT8( KPhoneTimeWhenMTResolved, "PhoneTimeWhenMTResolved"); |
|
129 |
|
130 //--keys for signing handler |
|
131 _LIT8( KPOPBase64, "POPBase64"); |
|
132 _LIT8( KBinaryType, "BinaryType"); |
|
133 _LIT8( KSTR, "STR"); |
|
134 _LIT8( KSignedPartsArray, "SignedPartsArray"); |
|
135 |
|
136 |
|
137 _LIT8( KRetryAfter, "RetryAfter"); |
|
138 _LIT8( KTokenType, "TokenType"); |
|
139 //--keys for passport handler |
|
140 _LIT8( KRedirect, "Redirect"); |
|
141 _LIT8( KMainBrandID, "MainBrandID"); |
|
142 _LIT8( KBrandIDList, "BrandIDList"); |
|
143 _LIT8( KBrandIDEnabled,"BrandIDEnabled"); |
|
144 _LIT8( KAppInfo,"AppInfo" ); |
|
145 _LIT8( KApplication,"Application" ); |
|
146 _LIT8( KNsPApplication,"mws:Application" ); |
|
147 _LIT8( KApplicationName,"ApplicationName" ); |
|
148 _LIT8( KApplicationVendor,"ApplicationVendor" ); |
|
149 _LIT8( KApplicationVersion,"ApplicationVersion" ); |
|
150 _LIT8( KDeviceOptions,"DeviceOptions" ); |
|
151 _LIT8( KNsPDeviceOptions,"mws:DeviceOptions" ); |
|
152 _LIT8( KLocale,"Locale" ); |
|
153 _LIT8( KNsPLocale,"mws:Locale" ); |
|
154 _LIT8( KUserAgent,"UserAgent" ); |
|
155 _LIT8( KNsPUserAgent,"mws:UserAgent" ); |
|
156 _LIT8( KManufacturer,"Manufacturer" ); |
|
157 _LIT8( KNsPManufacturer,"mws:Manufacturer" ); |
|
158 _LIT8( KModel,"Model" ); |
|
159 _LIT8( KNsPModel,"mws:Model" ); |
|
160 _LIT8( KOS,"OS" ); |
|
161 _LIT8( KNsPOS,"mws:OS" ); |
|
162 _LIT8( KIMSI,"IMSI" ); |
|
163 _LIT8( KNsPIMSI,"mws:IMSI" ); |
|
164 _LIT8( KDeviceName,"DeviceName" ); |
|
165 _LIT8( KDeviceVersion,"DeviceVersion" ); |
|
166 _LIT8( KWAPGW,"WAPGW" ); |
|
167 _LIT8( KName,"Name" ); |
|
168 _LIT8( KNsPName,"mws:Name" ); |
|
169 _LIT8( KVendor,"Vendor" ); |
|
170 _LIT8( KNsPVendor,"mws:Vendor" ); |
|
171 _LIT8( KVersion,"Version" ); |
|
172 _LIT8( KNsPVersion,"mwsVersion" ); |
|
173 _LIT8( KAppInfoPresent,"AppInfoPresent" ); |
|
174 |
|
175 //SESSION KEYS |
|
176 //--keys for discovery phase |
|
177 //-----register handler |
|
178 _LIT8(KRegisterAction, "action"); |
|
179 _LIT8(KServiceDescription, "serviceDescription"); |
|
180 |
|
181 //--keys for validation phase (handler) |
|
182 _LIT8(KServiceSession, "serviceSession"); |
|
183 _LIT8(KRemoteConsumer, "RemoteConsumer"); |
|
184 _LIT8(KOnlySharing, "OnlySharing"); |
|
185 |
|
186 //--keys for faults |
|
187 _LIT8(KReAuthNeeded, "ReAuthNeeded"); |
|
188 _LIT8(KReAuthNeededFromCredObserv, "ReAuthNeededFromCredObserv"); |
|
189 _LIT8(KErrMessage, "ErrorMessage"); |
|
190 |
|
191 |
|
192 //MARKERS |
|
193 _LIT8( KAddressAttrMark, "mark_address"); |
|
194 _LIT8( KMultiReqTagMark, "mark_multiReq"); |
|
195 |
|
196 //holder for shared inforamtiom.Keep handler version specific information |
|
197 _LIT8( KAddressingNsHolder, "addressingNsHolder"); |
|
198 _LIT8( KAddressingEndpointTagHolder, "addressingEndpointHolder"); |
|
199 //holder for Policy |
|
200 _LIT8( KWSStarPolicyHolder, "PolicyHolder"); |
|
201 |
|
202 _LIT8( KWSStarTranspProp, "TransportPropertiesForResend"); |
|
203 } |
|
204 |
|
205 namespace WSStarContextValues |
|
206 { |
|
207 _LIT8( KPOPTypeSimmetric, "simmetric"); |
|
208 _LIT8( KPOPTypeAsimmetric, "asimmetric"); |
|
209 _LIT8( KPOPTypeNonce, "nonce"); |
|
210 |
|
211 //--values for discovery phase |
|
212 //-----register handler |
|
213 _LIT8(KActionRegister, "register"); |
|
214 _LIT8(KActionUnregister, "unregister"); |
|
215 } |
|
216 |
|
217 #endif // CONSPLUGIN_H |