pkiutilities/untrustedcertificatedialog/inc/untrustedcertificateinfo_symbian.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:28:40 +0300
changeset 26 aad866c37519
child 30 cc1cea6aabaf
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Certificate info class for TLS untrusted certificate dialog.
*
*/

#ifndef UNTRUSTEDCERTIFICATEINFOSYMBIAN_H
#define UNTRUSTEDCERTIFICATEINFOSYMBIAN_H

#include "untrustedcertificateinfobase.h"

class CX509Certificate;


/**
 * Certificate info class for secure connections (TLS) untrusted certificate dialog.
 * Symbian-specific concrete implementeation for the certificate info class.
 */
class UntrustedCertificateInfoSymbian : public UntrustedCertificateInfoBase
{
public:     // constructor and destructor
    UntrustedCertificateInfoSymbian(const CX509Certificate& aCert);
    ~UntrustedCertificateInfoSymbian();

public:     // from UntrustedCertificateInfoBase
    bool commonNameMatches(const QString &siteName) const;
    bool isPermanentAcceptAllowed() const;
    QString certificateDetails() const;

private:    // new functions
    void ConstructL(const CX509Certificate& aCert);
    bool CommonNameMatchesL(const QString &siteName) const;

private:    // data
    CX509Certificate* iCert;
};

#endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H