28 * Symbian-specific concrete implementeation for the certificate info class. |
28 * Symbian-specific concrete implementeation for the certificate info class. |
29 */ |
29 */ |
30 class UntrustedCertificateInfoSymbian : public UntrustedCertificateInfoBase |
30 class UntrustedCertificateInfoSymbian : public UntrustedCertificateInfoBase |
31 { |
31 { |
32 public: // constructor and destructor |
32 public: // constructor and destructor |
33 UntrustedCertificateInfoSymbian(const CX509Certificate& aCert); |
33 UntrustedCertificateInfoSymbian(const QByteArray &aEncodedCert); |
34 ~UntrustedCertificateInfoSymbian(); |
34 ~UntrustedCertificateInfoSymbian(); |
35 |
35 |
36 public: // from UntrustedCertificateInfoBase |
36 public: // from UntrustedCertificateInfoBase |
37 bool commonNameMatches(const QString &siteName) const; |
37 bool commonNameMatches(const QString &siteName) const; |
38 bool isPermanentAcceptAllowed() const; |
38 QString certificateDetails(const QString &siteName) const; |
39 QString certificateDetails() const; |
|
40 |
39 |
41 private: // new functions |
40 private: // new functions |
42 void ConstructL(const CX509Certificate& aCert); |
41 void ConstructL(const QByteArray &aEncodedCert); |
43 bool CommonNameMatchesL(const QString &siteName) const; |
42 bool CommonNameMatchesL(const QString &siteName) const; |
|
43 QByteArray Md5FingerprintL( const TDesC8& aEncodedCert ) const; |
44 |
44 |
45 private: // data |
45 private: // data |
46 CX509Certificate* iCert; |
46 CX509Certificate* mCert; |
|
47 QByteArray mMd5Fingerprint; |
47 }; |
48 }; |
48 |
49 |
49 #endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H |
50 #endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H |