Home C-Bits Package Documentation Project Page

Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

cbits::SSLPeer Class Reference

This class represents the SSL 'peer' in an established SSL connection. More...

#include <SSLPeer.h>

List of all members.

Public Types

typedef std::vector< const
SSLCert * > 
SSLCertChain
typedef std::vector< const
SSLCert * >::iterator 
SSLCertChainIter

Public Methods

const std::string getSubjectName () const
 Access this peer's SubjectName field from its certificate. More...

const SSLCertChaingetCertChain () const
 Access this peer's certificate chain. More...


Private Methods

 SSLPeer (const SSLCert *cert)
 Private constructor to prevent forgery. More...

 ~SSLPeer ()
 Private destructor to prevent illegal destruction. More...

void addCert (const SSLCert *cert)
 Add a certificate to a this peer's certificate chain. More...

 SSLPeer (const SSLPeer &)
 NOT IMPLEMENTED *. More...

SSLPeer & operator= (const SSLPeer &)

Private Attributes

SSLCertChain _cert_chain
 The peer's certificate chain. More...


Friends

class SSLSocket
class SSLServerSocket


Detailed Description

This class represents the SSL 'peer' in an established SSL connection.

Instances of this class can only be obtained from a connected cbits::SSLSocket instance which has successfully negotiated the SSL handshake with a remote peer.


Member Typedef Documentation

typedef std::vector<const SSLCert*> cbits::SSLPeer::SSLCertChain
 

typedef std::vector<const SSLCert*>::iterator cbits::SSLPeer::SSLCertChainIter
 


Constructor & Destructor Documentation

SSLPeer::SSLPeer const SSLCert   cert [private]
 

Private constructor to prevent forgery.

SSLPeer::~SSLPeer   [private]
 

Private destructor to prevent illegal destruction.

cbits::SSLPeer::SSLPeer const SSLPeer &    [private]
 

NOT IMPLEMENTED *.


Member Function Documentation

void SSLPeer::addCert const SSLCert   cert [private]
 

Add a certificate to a this peer's certificate chain.

This is a priviledged operation.

const SSLPeer::SSLCertChain & SSLPeer::getCertChain   const
 

Access this peer's certificate chain.

const std::string SSLPeer::getSubjectName   const
 

Access this peer's SubjectName field from its certificate.

SSLPeer& cbits::SSLPeer::operator= const SSLPeer &    [private]
 


Friends And Related Function Documentation

friend class SSLServerSocket [friend]
 

friend class SSLSocket [friend]
 


Member Data Documentation

SSLCertChain cbits::SSLPeer::_cert_chain [private]
 

The peer's certificate chain.


The documentation for this class was generated from the following files:
Generated by
doxygen
Hosted by
SourceForge