|
1 /* |
|
2 * Copyright (c) 2009 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 /* |
|
24 * ========================================================================= |
|
25 * Name : SenCertUtils.h |
|
26 */ |
|
27 |
|
28 #ifndef C_SEN_CERT_UTILS_H |
|
29 #define C_SEN_CERT_UTILS_H |
|
30 |
|
31 // INCLUDES |
|
32 |
|
33 #include <e32base.h> |
|
34 |
|
35 |
|
36 // CONSTANTS |
|
37 _LIT8(KSenCASNDelimiter, "-"); // Delimiter for TCertInfo fields in string representation |
|
38 |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 class TCertInfo; // from ssl.h |
|
42 |
|
43 // CLASS DEFINITIONS |
|
44 |
|
45 /** |
|
46 * Set of static convenience methods to process X.509 certificates |
|
47 * |
|
48 * <p> |
|
49 * (c) Copyright Nokia 2004, 2005 |
|
50 * <p> |
|
51 * @author Norbert Leser |
|
52 */ |
|
53 class SenCertUtils |
|
54 { |
|
55 |
|
56 public: |
|
57 /** |
|
58 * CertInfoToStringLC |
|
59 * Converts TCertInfo type to string representation (TDesC8), |
|
60 * where fields are delimited by KSenCASNDelimiter |
|
61 * |
|
62 * @since Series60 4.0 |
|
63 * |
|
64 * @param aCertInfo The certificate info object that provides a unique |
|
65 * identification of a certificate. |
|
66 * |
|
67 * @return newly allocated string representation of cert info, which is |
|
68 * left on cleanupstack. |
|
69 */ |
|
70 IMPORT_C static HBufC8* CertInfoToStringLC(const TCertInfo& aCertInfo); |
|
71 |
|
72 |
|
73 private: |
|
74 /** |
|
75 * Hide default C++ constructor. |
|
76 */ |
|
77 SenCertUtils() { } |
|
78 |
|
79 /** |
|
80 * Prohibit copy constructor if not deriving from CBase. |
|
81 */ |
|
82 SenCertUtils( const SenCertUtils& ); |
|
83 |
|
84 /** |
|
85 * Prohibit assignment operator if not deriving from CBase. |
|
86 */ |
|
87 SenCertUtils& operator=( const SenCertUtils& ); |
|
88 }; |
|
89 |
|
90 #endif // C_SEN_CERT_UTILS_H |
|
91 |