1 /* |
|
2 * Copyright (c) 2010 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: Certificate info class for TLS untrusted certificate dialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UNTRUSTEDCERTIFICATEINFOSYMBIAN_H |
|
19 #define UNTRUSTEDCERTIFICATEINFOSYMBIAN_H |
|
20 |
|
21 #include "untrustedcertificateinfobase.h" |
|
22 |
|
23 class CX509Certificate; |
|
24 |
|
25 |
|
26 /** |
|
27 * Certificate info class for secure connections (TLS) untrusted certificate dialog. |
|
28 * Symbian-specific concrete implementeation for the certificate info class. |
|
29 */ |
|
30 class UntrustedCertificateInfoSymbian : public UntrustedCertificateInfoBase |
|
31 { |
|
32 public: // constructor and destructor |
|
33 UntrustedCertificateInfoSymbian(const QByteArray &aEncodedCert); |
|
34 ~UntrustedCertificateInfoSymbian(); |
|
35 |
|
36 public: // from UntrustedCertificateInfoBase |
|
37 bool commonNameMatches(const QString &siteName) const; |
|
38 QString certificateDetails(const QString &siteName) const; |
|
39 |
|
40 private: // new functions |
|
41 void ConstructL(const QByteArray &aEncodedCert); |
|
42 bool CommonNameMatchesL(const QString &siteName) const; |
|
43 QByteArray Md5FingerprintL( const TDesC8& aEncodedCert ) const; |
|
44 |
|
45 private: // data |
|
46 CX509Certificate* mCert; |
|
47 QByteArray mMd5Fingerprint; |
|
48 }; |
|
49 |
|
50 #endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H |
|