.TH "KSSLPeerInfo" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSSLPeerInfo \- \fBKDE\fP SSL Peer Data \fBKDE\fP SSL Peer Data.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ksslpeerinfo.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fB~KSSLPeerInfo\fP ()"
.br
.ti -1c
.RI "\fBKSSLCertificate\fP & \fBgetPeerCertificate\fP ()"
.br
.ti -1c
.RI "bool \fBcertMatchesAddress\fP ()"
.br
.ti -1c
.RI "bool \fBcnMatchesAddress\fP (\fBQString\fP cn)"
.br
.ti -1c
.RI "void \fBsetPeerHost\fP (\fBQString\fP host=QString::null)"
.br
.ti -1c
.RI "void \fBreset\fP ()"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKSSLCertificate\fP \fBm_cert\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKSSL\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBKDE\fP SSL Peer Data \fBKDE\fP SSL Peer Data. 

This class contains data about the peer of an SSL connection.
.PP
\fBAuthor:\fP
.RS 4
George Staikos <staikos@kde.org> 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSL\fP 
.RE
.PP

.PP
Definition at line 42 of file ksslpeerinfo.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSSLPeerInfo::~\fBKSSLPeerInfo\fP ()"
.PP
Destroy this instance. 
.PP
Definition at line 52 of file ksslpeerinfo.cc.
.SH "Member Function Documentation"
.PP 
.SS "\fBKSSLCertificate\fP & KSSLPeerInfo::getPeerCertificate ()"
.PP
Get a reference to the peer's certificate. 
.PP
\fBReturns:\fP
.RS 4
a reference to the peer's certificate 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSLCertificate\fP
.RE
.PP

.PP
Definition at line 56 of file ksslpeerinfo.cc.
.SS "bool KSSLPeerInfo::certMatchesAddress ()"
.PP
Determine if the peer's certificate matches the address set with \fBsetPeerHost()\fP. 
.PP
Note that this is a match in the 'https' sense, taking into account, for instance, wildcards.
.PP
\fBReturns:\fP
.RS 4
true if it matches 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetPeerHost\fP
.RE
.PP

.PP
Definition at line 72 of file ksslpeerinfo.cc.
.PP
References cnMatchesAddress(), KSSLCertificate::getSubject(), QStringList::split(), and KSSLCertificate::subjAltNames().
.SS "bool KSSLPeerInfo::cnMatchesAddress (\fBQString\fP cn)"
.PP
Determine if the given 'common name' matches the address set with \fBsetPeerHost()\fP. 
.PP
Note that this is a match in the 'https' sense, taking into account, for instance, wildcards.
.PP
\fBReturns:\fP
.RS 4
true if it matches 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetPeerHost\fP
.RE
.PP

.PP
Definition at line 89 of file ksslpeerinfo.cc.
.PP
References QString::contains(), endl(), QString::endsWith(), QRegExp::exactMatch(), QString::isEmpty(), kdDebug(), QString::length(), QRegExp::setPattern(), QStringList::split(), and QString::truncate().
.PP
Referenced by certMatchesAddress().
.SS "void KSSLPeerInfo::setPeerHost (\fBQString\fP host = \fCQString::null\fP)"
.PP
Set the host that we are connected to. 
.PP
This is generally set by \fBKSSL\fP, and should be exactly what the user -thinks- he is connected to. (for instance, the host name in the url)
.PP
\fBParameters:\fP
.RS 4
\fIhost\fP the hostname
.RE
.PP

.PP
Definition at line 60 of file ksslpeerinfo.cc.
.PP
References QString::fromLatin1(), QString::lower(), QString::stripWhiteSpace(), and QString::truncate().
.SS "void KSSLPeerInfo::reset ()"
.PP
Clear out the host name. 
.PP

.PP
Definition at line 156 of file ksslpeerinfo.cc.
.PP
Referenced by KSSL::initialize().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
