equal
deleted
inserted
replaced
26 |
26 |
27 /** |
27 /** |
28 @file |
28 @file |
29 This file contains the definition for class CWTLSName. |
29 This file contains the definition for class CWTLSName. |
30 |
30 |
31 @internalAll |
31 @publishedAll |
|
32 @released |
32 |
33 |
33 enum { null(0), text(1), binary(2), key_hash_sha(254), x509_name(255)} |
34 enum { null(0), text(1), binary(2), key_hash_sha(254), x509_name(255)} |
34 IdentifierType; |
35 IdentifierType; |
35 |
36 |
36 We only support text and x509_name as these are the only meaningful identifiers.. |
37 We only support text and x509_name as these are the only meaningful identifiers.. |
58 /** |
59 /** |
59 * Enumerates the types of WTLS certificate name forms/identifiers. |
60 * Enumerates the types of WTLS certificate name forms/identifiers. |
60 * |
61 * |
61 * Only text strings and X.500 Distinguished Names are currently supported. |
62 * Only text strings and X.500 Distinguished Names are currently supported. |
62 * |
63 * |
63 * @publishedAll |
|
64 * @released |
|
65 */ |
64 */ |
66 enum |
65 enum |
67 { |
66 { |
68 /* Null */ |
67 /* Null */ |
69 EWTLSNull = 0x00, |
68 EWTLSNull = 0x00, |
82 EWTLSKeyHashSha = 0xfe, |
81 EWTLSKeyHashSha = 0xfe, |
83 /* X.500 Distinguished Name. */ |
82 /* X.500 Distinguished Name. */ |
84 EWTLSX500DN = 0xff |
83 EWTLSX500DN = 0xff |
85 }; |
84 }; |
86 |
85 |
87 /** |
|
88 * @publishedAll |
|
89 * @released |
|
90 */ |
|
91 typedef TUint8 TWTLSNameType; |
86 typedef TUint8 TWTLSNameType; |
92 |
87 |
93 /** |
|
94 * @publishedAll |
|
95 * @released |
|
96 */ |
|
97 typedef TInt TWTLSCharSet; |
88 typedef TInt TWTLSCharSet; |
98 |
89 |
99 // MIBenum constants from the IANA list of character sets. |
90 // MIBenum constants from the IANA list of character sets. |
100 // See http://www.iana.org/assignments/character-sets for more info. |
91 // See http://www.iana.org/assignments/character-sets for more info. |
101 |
92 |
107 |
98 |
108 class CWTLSName : public CBase |
99 class CWTLSName : public CBase |
109 /** |
100 /** |
110 * Stores the type of a WTLS name and the underlying encoding of the type. |
101 * Stores the type of a WTLS name and the underlying encoding of the type. |
111 * |
102 * |
112 * @publishedAll |
|
113 * @released |
|
114 */ |
103 */ |
115 { |
104 { |
116 public: |
105 public: |
117 /** |
106 /** |
118 * Creates a new CWTLSName object from the specified buffer containing the binary coded representation. |
107 * Creates a new CWTLSName object from the specified buffer containing the binary coded representation. |
217 void AllocTextDataL(const TDesC8& aBinaryData, TInt& aPos); |
206 void AllocTextDataL(const TDesC8& aBinaryData, TInt& aPos); |
218 TWTLSNameType iNameType; |
207 TWTLSNameType iNameType; |
219 HBufC8* iNameData; |
208 HBufC8* iNameData; |
220 }; |
209 }; |
221 |
210 |
222 /** |
|
223 * @publishedAll |
|
224 * @released |
|
225 */ |
|
226 class CWTLSText : public CBase |
211 class CWTLSText : public CBase |
227 { |
212 { |
228 public: |
213 public: |
229 /** |
214 /** |
230 * Creates a new CWTLSText object from the specified buffer containing the binary coded representation. |
215 * Creates a new CWTLSText object from the specified buffer containing the binary coded representation. |
317 _LIT(KWTLSOrganizationName,"O"); |
302 _LIT(KWTLSOrganizationName,"O"); |
318 _LIT(KWTLSServiceName,"OU"); |
303 _LIT(KWTLSServiceName,"OU"); |
319 _LIT(KWTLSTitle,"T"); |
304 _LIT(KWTLSTitle,"T"); |
320 _LIT(KWTLSCommonName,"CN"); |
305 _LIT(KWTLSCommonName,"CN"); |
321 |
306 |
322 /** |
|
323 * @publishedAll |
|
324 * @released |
|
325 */ |
|
326 class TWTLSStructuredTextField |
307 class TWTLSStructuredTextField |
327 { |
308 { |
328 public: |
309 public: |
329 /** |
310 /** |
330 * @internalAll |
311 * @internalAll |
346 private: |
327 private: |
347 const TPtrC iType; |
328 const TPtrC iType; |
348 const TPtrC iValue; |
329 const TPtrC iValue; |
349 }; |
330 }; |
350 |
331 |
351 /** |
|
352 * @publishedAll |
|
353 * @released |
|
354 */ |
|
355 class CWTLSStructuredText : public CWTLSText |
332 class CWTLSStructuredText : public CWTLSText |
356 { |
333 { |
357 public: |
334 public: |
358 /** |
335 /** |
359 * Creates a new CWTLSStructuredText object from the specified buffer containing the binary coded representation. |
336 * Creates a new CWTLSStructuredText object from the specified buffer containing the binary coded representation. |
466 TBool GetSubFieldL(TDesC& aString, TInt& aPos); |
443 TBool GetSubFieldL(TDesC& aString, TInt& aPos); |
467 CArrayFixFlat<TWTLSStructuredTextField>* iFields; |
444 CArrayFixFlat<TWTLSStructuredTextField>* iFields; |
468 }; |
445 }; |
469 |
446 |
470 #endif |
447 #endif |
|
448 |
|
449 |