• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/kssl
 

tdeio/kssl

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

#include <ksslpeerinfo.h>

Public Member Functions

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

Protected Attributes

KSSLCertificate m_cert
 

Friends

class KSSL
 

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 42 of file ksslpeerinfo.h.

Constructor & Destructor Documentation

◆ ~KSSLPeerInfo()

KSSLPeerInfo::~KSSLPeerInfo ( )

Destroy this instance.

Definition at line 52 of file ksslpeerinfo.cpp.

◆ KSSLPeerInfo()

KSSLPeerInfo::KSSLPeerInfo ( )
protected

Definition at line 48 of file ksslpeerinfo.cpp.

Member Function Documentation

◆ certMatchesAddress()

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

◆ cnMatchesAddress()

bool KSSLPeerInfo::cnMatchesAddress ( TQString  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 89 of file ksslpeerinfo.cpp.

◆ getPeerCertificate()

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

◆ peerHost()

const TQString & KSSLPeerInfo::peerHost ( ) const

Returns the host we are connected to.

Definition at line 168 of file ksslpeerinfo.cpp.

◆ reset()

void KSSLPeerInfo::reset ( )

Clear out the host name.

Definition at line 163 of file ksslpeerinfo.cpp.

◆ setPeerHost()

void KSSLPeerInfo::setPeerHost ( TQString  host = TQString::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
hostthe hostname

Definition at line 60 of file ksslpeerinfo.cpp.

Friends And Related Function Documentation

◆ KSSL

friend class KSSL
friend

Definition at line 43 of file ksslpeerinfo.h.

Member Data Documentation

◆ m_cert

KSSLCertificate KSSLPeerInfo::m_cert
protected

Definition at line 100 of file ksslpeerinfo.h.


The documentation for this class was generated from the following files:
  • ksslpeerinfo.h
  • ksslpeerinfo.cpp

tdeio/kssl

Skip menu "tdeio/kssl"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/kssl

Skip menu "tdeio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/kssl by doxygen 1.9.4
This website is maintained by Timothy Pearson.