• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KSSLPeerInfo Class Reference

#include <ksslpeerinfo.h>

Public Member Functions

 ~KSSLPeerInfo ()
 
bool certMatchesAddress ()
 
bool cnMatchesAddress (QString cn)
 
KSSLCertificate & getPeerCertificate ()
 
const QString & peerHost () const
 
void reset ()
 
void setPeerHost (const QString &host=QString())
 

Protected Member Functions

 KSSLPeerInfo ()
 

Protected Attributes

KSSLCertificate m_cert
 

Detailed Description

KDE SSL Peer Data.

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

Author
George Staikos staik.nosp@m.os@k.nosp@m.de.or.nosp@m.g
See also
KSSL KDE SSL Peer Data

Definition at line 41 of file ksslpeerinfo.h.

Constructor & Destructor Documentation

KSSLPeerInfo::~KSSLPeerInfo ( )

Destroy this instance.

Definition at line 47 of file ksslpeerinfo.cpp.

KSSLPeerInfo::KSSLPeerInfo ( )
protected

Definition at line 42 of file ksslpeerinfo.cpp.

Member Function Documentation

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 63 of file ksslpeerinfo.cpp.

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 80 of file ksslpeerinfo.cpp.

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 51 of file ksslpeerinfo.cpp.

const QString & KSSLPeerInfo::peerHost ( ) const

Returns the host we are connected to.

Definition at line 159 of file ksslpeerinfo.cpp.

void KSSLPeerInfo::reset ( )

Clear out the host name.

Definition at line 154 of file ksslpeerinfo.cpp.

void KSSLPeerInfo::setPeerHost ( const QString &  host = QString())

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
hostthe hostname

Definition at line 55 of file ksslpeerinfo.cpp.

Member Data Documentation

KSSLCertificate KSSLPeerInfo::m_cert
protected

Definition at line 99 of file ksslpeerinfo.h.


The documentation for this class was generated from the following files:
  • ksslpeerinfo.h
  • ksslpeerinfo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal