VMime
certificateChain Class Reference

#include <certificateChain.hpp>

Inheritance diagram for certificateChain:
Collaboration diagram for certificateChain:

Public Member Functions

 certificateChain (const std::vector< shared_ptr< certificate > > &certs)
size_t getCount () const
shared_ptr< certificategetAt (const size_t index)

Protected Attributes

std::vector< shared_ptr< certificate > > m_certs

Additional Inherited Members

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

Detailed Description

An ordered list of certificates, from the subject certificate to the issuer certificate.

Constructor & Destructor Documentation

◆ certificateChain()

certificateChain ( const std::vector< shared_ptr< certificate > > & certs)

Construct a new certificateChain object given an ordered list of certificates.

Parameters
certschain of certificates

References m_certs.

Member Function Documentation

◆ getAt()

shared_ptr< certificate > getAt ( const size_t index)

Return the certificate at the specified position.

0 is the subject certificate, 1 is the issuer's certificate, 2 is the issuer's issuer, etc.

Parameters
indexposition at which to retrieve certificate
Returns
certificate at the specified position

References m_certs.

◆ getCount()

size_t getCount ( ) const

Return the number of certificates in the chain.

Returns
number of certificates in the chain

References m_certs.

Member Data Documentation

◆ m_certs

std::vector<shared_ptr <certificate> > m_certs
protected

Referenced by certificateChain(), getAt(), and getCount().


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