kio Library API Documentation

KSSLInfoDlg Class Reference

KDE SSL Information Dialog KDE SSL Information Dialog. More...

#include <ksslinfodlg.h>

Inheritance diagram for KSSLInfoDlg:

KDialog QDialog List of all members.

Public Methods

 KSSLInfoDlg (bool secureConnection, QWidget *parent=0L, const char *name=0L, bool modal=false)
virtual ~KSSLInfoDlg ()
void setSecurityInQuestion (bool isIt)
void setup (KSSLCertificate *cert, const QString &ip, const QString &url, const QString &cipher, const QString &cipherdesc, const QString &sslversion, int usedbits, int bits, KSSLCertificate::KSSLValidation certState)
void setup (KSSL &ssl, const QString &ip, const QString &url)
void setCertState (const QString &errorNrs)

Static Public Methods

KSSLCertBoxcertInfoWidget (QWidget *parent, const QString &certName, QWidget *mailCatcher=0)

Detailed Description

KDE SSL Information Dialog KDE SSL Information Dialog.

This class creates a dialog that can be used to display information about an SSL session.

There are NO GUARANTEES that KSSLInfoDlg will remain binary compatible/ Contact staikos@kde.org for details if needed.

Author:
George Staikos <staikos@kde.org>
See also:
KSSL

Definition at line 50 of file ksslinfodlg.h.


Constructor & Destructor Documentation

KSSLInfoDlg::KSSLInfoDlg bool    secureConnection,
QWidget   parent = 0L,
const char *    name = 0L,
bool    modal = false
 

Construct a KSSL Information Dialog.

Parameters:
secureConnection  true if the connection is secured with SSL
parent  the parent widget
name  the internal name of this instance
modal  true if the dialog should be modal

Definition at line 74 of file ksslinfodlg.cc.

References KSSL::doesSSLWork(), KDialog::marginHint(), KDialog::setCaption(), and KDialog::spacingHint().

KSSLInfoDlg::~KSSLInfoDlg   [virtual]
 

Destroy this dialog.

Definition at line 124 of file ksslinfodlg.cc.


Member Function Documentation

void KSSLInfoDlg::setSecurityInQuestion bool    isIt
 

Tell the dialog if the connection has portions that may not be secure (ie.

a mixture of secure and insecure frames)

Parameters:
isIt  true if security is in question

Definition at line 135 of file ksslinfodlg.cc.

References KSSL::doesSSLWork().

void KSSLInfoDlg::setup KSSLCertificate   cert,
const QString   ip,
const QString   url,
const QString   cipher,
const QString   cipherdesc,
const QString   sslversion,
int    usedbits,
int    bits,
KSSLCertificate::KSSLValidation    certState
 

Setup the dialog before showing it.

Parameters:
cert  the certificate presented by the site
ip  the ip of the remote host
url  the url being accessed
cipher  the cipher in use
cipherdesc  text description of the cipher in use
sslversion  the version of SSL in use (SSLv2, SSLv3, TLSv1, etc)
usedbits  the number of bits in the cipher key being used
bits  the bit-size of the cipher in use
certState  the certificate state (valid, invalid, etc)

Definition at line 172 of file ksslinfodlg.cc.

References QGridLayout::addMultiCellWidget(), QGridLayout::addWidget(), KSSLCertificate::chain(), KSSLCertChain::depth(), QPtrList::first(), KSSLCertChain::getChain(), KSSLCertificate::getIssuer(), KSSLCertificate::getSubject(), KSSLX509Map::getValue(), KSSLCertChain::isValid(), QString::length(), QPtrList::next(), QString::number(), QGridLayout::setColStretch(), QString::simplifyWhiteSpace(), and KDialog::spacingHint().

Referenced by Observer::messageBox(), and setup().

void KSSLInfoDlg::setup KSSL   ssl,
const QString   ip,
const QString   url
 

Setup the dialog before showing it.

This is a convenience version of the above method, and obtains the same information using the

Parameters:
ssl  parameter instead.
ssl  the ssl connection
ip  the ip of the remote host
url  the url being accessed

Definition at line 157 of file ksslinfodlg.cc.

References KSSL::connectionInfo(), KSSLConnectionInfo::getCipher(), KSSLConnectionInfo::getCipherBits(), KSSLConnectionInfo::getCipherDescription(), KSSLConnectionInfo::getCipherUsedBits(), KSSLConnectionInfo::getCipherVersion(), KSSLPeerInfo::getPeerCertificate(), KSSL::peerInfo(), setup(), and KSSLCertificate::validate().

void KSSLInfoDlg::setCertState const QString   errorNrs
 

Set the errors that were encountered while validating the site certificate.

Definition at line 250 of file ksslinfodlg.cc.

References QStringList::split().

KSSLCertBox * KSSLInfoDlg::certInfoWidget QWidget   parent,
const QString   certName,
QWidget   mailCatcher = 0
[static]
 

Utility function to generate the widget which displays the detailed information about an X.509 certificate.

Parameters:
parent  the parent widget
certName  the name (subject) of the certificate
mailCatcher  the class which catches click events on e-mail addresses

Definition at line 342 of file ksslinfodlg.cc.

References QDialog::result(), and KSSLCertBox::setValues().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:35:15 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003