TLSSession Class Referenceabstract
Inheritance diagram for TLSSession:
Collaboration diagram for TLSSession:

Public Member Functions

virtual shared_ptr< TLSSocketgetSocket (shared_ptr< socket > sok)=0
virtual shared_ptr
< security::cert::certificateVerifier
getCertificateVerifier ()=0

Static Public Member Functions

static shared_ptr< TLSSessioncreate (shared_ptr< security::cert::certificateVerifier > cv, shared_ptr< TLSProperties > props)

Protected Member Functions

 TLSSession ()
- Protected Member Functions inherited from object
 object ()
 object (const object &)
objectoperator= (const object &)
virtual ~object ()

Detailed Description

Describe a TLS connection between a client and a server.

Constructor & Destructor Documentation

TLSSession ( )

Member Function Documentation

static shared_ptr<TLSSession> create ( shared_ptr< security::cert::certificateVerifier cv,
shared_ptr< TLSProperties props 

Create and initialize a new TLS session.

cvobject responsible for verifying certificates sent by the server
propsTLS properties for this session
a new TLS session

Referenced by POP3Connection::connect(), and SMTPConnection::connect().

virtual shared_ptr<security::cert::certificateVerifier> getCertificateVerifier ( )
pure virtual

Get the object responsible for verifying certificates when using secured connections (TLS/SSL).

virtual shared_ptr<TLSSocket> getSocket ( shared_ptr< socket sok)
pure virtual

Create a new socket that adds a TLS security layer around an existing socket.

You should create only one socket per session.

soksocket to wrap
TLS socket wrapper

The documentation for this class was generated from the following files: