VMime
TLSSecuredConnectionInfos Class Reference

#include <TLSSecuredConnectionInfos.hpp>

Inheritance diagram for TLSSecuredConnectionInfos:
Collaboration diagram for TLSSecuredConnectionInfos:

Public Member Functions

 TLSSecuredConnectionInfos (const string &host, const port_t port, shared_ptr< TLSSession > tlsSession, shared_ptr< TLSSocket > tlsSocket)
const string getHost () const
port_t getPort () const
shared_ptr< const security::cert::certificateChaingetPeerCertificates () const

Additional Inherited Members

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

Detailed Description

Information about a TLS-secured connection used by a service.

Constructor & Destructor Documentation

◆ TLSSecuredConnectionInfos()

TLSSecuredConnectionInfos ( const string & host,
const port_t port,
shared_ptr< TLSSession > tlsSession,
shared_ptr< TLSSocket > tlsSocket )

Member Function Documentation

◆ getHost()

const string getHost ( ) const
virtual

Return the host to which the service is connected.

Returns
server host name or address

Implements connectionInfos.

◆ getPeerCertificates()

shared_ptr< const security::cert::certificateChain > getPeerCertificates ( ) const

Return the peer's certificate (chain) as sent by the peer.

Returns
server certificate chain

◆ getPort()

port_t getPort ( ) const
virtual

Return the port to which the service is connected.

Returns
server port

Implements connectionInfos.


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