pkiutilities/untrustedcertificatedialog/inc/untrustedcertificateinfo_symbian.h
changeset 26 aad866c37519
child 30 cc1cea6aabaf
equal deleted inserted replaced
22:6b63ca65093a 26:aad866c37519
       
     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 CX509Certificate& aCert);
       
    34     ~UntrustedCertificateInfoSymbian();
       
    35 
       
    36 public:     // from UntrustedCertificateInfoBase
       
    37     bool commonNameMatches(const QString &siteName) const;
       
    38     bool isPermanentAcceptAllowed() const;
       
    39     QString certificateDetails() const;
       
    40 
       
    41 private:    // new functions
       
    42     void ConstructL(const CX509Certificate& aCert);
       
    43     bool CommonNameMatchesL(const QString &siteName) const;
       
    44 
       
    45 private:    // data
       
    46     CX509Certificate* iCert;
       
    47 };
       
    48 
       
    49 #endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H