1 /* |
|
2 * Copyright (c) 2002-2004 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: This file contains the header file of the CSisxUICertificateInfo |
|
15 * class. |
|
16 * |
|
17 * This class implements the CCUICertificateInfo for Sisx |
|
18 * implementation. |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef SISXUICERTIFICATEINFO_H |
|
24 #define SISXUICERTIFICATEINFO_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 #include <CUIDetailsDialog.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 namespace Swi |
|
32 { |
|
33 class CCertificateInfo; |
|
34 } |
|
35 |
|
36 namespace SwiUI |
|
37 { |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 /** |
|
42 * This class implements the CCUICertificateInfo for Sisx implementation. |
|
43 * |
|
44 * @lib swinstcommonui.lib |
|
45 * @since 3.0 |
|
46 */ |
|
47 class CSisxUICertificateInfo : public CommonUI::CCUICertificateInfo |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 */ |
|
54 static CSisxUICertificateInfo* NewL( const Swi::CCertificateInfo& aCertInfo ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CSisxUICertificateInfo(); |
|
60 |
|
61 public: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CCUICertificateInfo, Gets the subject name of the certificate. |
|
65 * @since 3.0 |
|
66 * @return The subject name of the certificate. |
|
67 */ |
|
68 const TDesC& SubjectNameL() const; |
|
69 |
|
70 /** |
|
71 * From CCUICertificateInfo, Gets the issuer name of the certificate. |
|
72 * @since 3.0 |
|
73 * @return The issuer name of the certificate. |
|
74 */ |
|
75 const TDesC& IssuerNameL() const; |
|
76 |
|
77 /** |
|
78 * From CCUICertificateInfo, Gets the date the certificate is valid from. |
|
79 * @since 3.0 |
|
80 * @return The date the certificate is valid from. |
|
81 */ |
|
82 TDateTime ValidFromL() const; |
|
83 |
|
84 /** |
|
85 * From CCUICertificateInfo, Gets the date the certificate is valid until. |
|
86 * @since 3.0 |
|
87 * @return The date the certificate is valid until. |
|
88 */ |
|
89 TDateTime ValidToL() const; |
|
90 |
|
91 /** |
|
92 * From CCUICertificateInfo, Gets the subject name of the certificate. |
|
93 * @since 3.0 |
|
94 * @return The subject name of the certificate. |
|
95 */ |
|
96 const TDesC8& FingerprintL() const; |
|
97 |
|
98 /** |
|
99 * From CCUICertificateInfo, Gets the subject name of the certificate. |
|
100 * @since 3.0 |
|
101 * @return The subject name of the certificate. |
|
102 */ |
|
103 const TDesC8& SerialNumberL() const; |
|
104 |
|
105 /** |
|
106 * From CCUICertificateInfo, Indicates wheter this certificate is self signed. |
|
107 * @since 3.0 |
|
108 * @return ETrue if is self signed. |
|
109 */ |
|
110 TBool IsSelfSignedL() const; |
|
111 |
|
112 /** |
|
113 * From CCUICertificateInfo, Gets the full encoding of this certificate. |
|
114 * @since 3.0 |
|
115 * @return Encoding. |
|
116 */ |
|
117 const TDesC8& EncodingL() const; |
|
118 |
|
119 /** |
|
120 * From CCUICertificateInfo, Gets the signature of this certificate. |
|
121 * @since 3.0 |
|
122 * @return Signature. |
|
123 */ |
|
124 const TDesC8& SignatureL() const; |
|
125 |
|
126 /** |
|
127 * From CCUICertificateInfo, Gets the public key algorithm of the certificate. |
|
128 * @since 3.0 |
|
129 * @return Public key algorithm. |
|
130 */ |
|
131 TAlgorithmId PublicKeyAlgorithmL() const; |
|
132 |
|
133 /** |
|
134 * From CCUICertificateInfo, Gets the digest algorithm of the certificate. |
|
135 * @since 3.0 |
|
136 * @return digest algorithm. |
|
137 */ |
|
138 TAlgorithmId DigestAlgorithmL() const; |
|
139 |
|
140 protected: |
|
141 |
|
142 /** |
|
143 * C++ default constructor. |
|
144 */ |
|
145 CSisxUICertificateInfo( const Swi::CCertificateInfo& aCertInfo ); |
|
146 |
|
147 /** |
|
148 * 2nd phase constructor. |
|
149 */ |
|
150 void ConstructL(); |
|
151 |
|
152 private: // Data |
|
153 |
|
154 const Swi::CCertificateInfo& iCertInfo; |
|
155 }; |
|
156 } |
|
157 |
|
158 #endif // SISXUICERTIFICATEINFO_H |
|
159 |
|
160 // End of File |
|