kio Library API Documentation

KSSLPeerInfo Class Reference

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

#include <ksslpeerinfo.h>

List of all members.

Public Member Functions

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

Protected Attributes

KSSLCertificate m_cert

Friends

class KSSL


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(), and KSSLCertificate::getSubject().

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 kdDebug().

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.

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.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Nov 27 13:46:05 2004 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003