kio Library API Documentation

KSSLPeerInfo Class Reference

KDE SSL Peer Data KDE SSL Peer Data. More...

#include <ksslpeerinfo.h>

List of all members.

Public Methods

 ~KSSLPeerInfo ()
KSSLCertificategetPeerCertificate ()
bool certMatchesAddress ()
bool cnMatchesAddress (QString cn)
void setPeerHost (QString host=QString::null)
void reset ()


Detailed Description

KDE SSL Peer Data KDE SSL Peer Data.

This class contains data about the peer of an SSL connection.

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

Definition at line 42 of file ksslpeerinfo.h.


Constructor & Destructor Documentation

KSSLPeerInfo::~KSSLPeerInfo  
 

Destroy this instance.

Definition at line 49 of file ksslpeerinfo.cc.


Member Function Documentation

KSSLCertificate & KSSLPeerInfo::getPeerCertificate  
 

Get a reference to the peer's certificate.

Returns:
a reference to the peer's certificate
See also:
KSSLCertificate

Definition at line 53 of file ksslpeerinfo.cc.

Referenced by KSSLInfoDlg::setup().

bool KSSLPeerInfo::certMatchesAddress  
 

Determine if the peer's certificate matches the address set with setPeerHost().

Note that this is a match in the "https" sense, taking into account, for instance, wildcards.

Returns:
true if it matches
See also:
setPeerHost

Definition at line 65 of file ksslpeerinfo.cc.

References cnMatchesAddress(), KSSLCertificate::getSubject(), KSSLX509Map::getValue(), and QStringList::split().

bool KSSLPeerInfo::cnMatchesAddress QString    cn
 

Determine if the given "common name" matches the address set with setPeerHost().

Note that this is a match in the "https" sense, taking into account, for instance, wildcards.

Returns:
true if it matches
See also:
setPeerHost

Definition at line 81 of file ksslpeerinfo.cc.

References QString::contains(), QString::endsWith(), QRegExp::exactMatch(), QString::isEmpty(), QString::length(), QRegExp::setPattern(), QStringList::split(), and QString::truncate().

Referenced by certMatchesAddress().

void KSSLPeerInfo::setPeerHost QString    host = QString::null
 

Set the host that we are connected to.

This is generally set by KSSL, and should be exactly what the user -thinks- he is connected to. (for instance, the host name in the url)

Parameters:
host  the hostname

Definition at line 57 of file ksslpeerinfo.cc.

References QString::stripWhiteSpace().

void KSSLPeerInfo::reset  
 

Clear out the host name.

Definition at line 149 of file ksslpeerinfo.cc.

Referenced by KSSL::initialize().


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.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 22 14:24:20 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003