Public Member Functions

Swift::CertificateTrustChecker Class Reference

A class to implement a check for certificate trust. More...

Inheritance diagram for Swift::CertificateTrustChecker:

List of all members.

Public Member Functions

virtual ~CertificateTrustChecker ()
virtual bool isCertificateTrusted (const std::vector< Certificate::ref > &certificateChain)=0
 This method is called to find out whether a certificate (chain) is trusted.

Detailed Description

A class to implement a check for certificate trust.

Definition at line 20 of file CertificateTrustChecker.h.


Constructor & Destructor Documentation

virtual Swift::CertificateTrustChecker::~CertificateTrustChecker (  )  [virtual]

Member Function Documentation

virtual bool Swift::CertificateTrustChecker::isCertificateTrusted ( const std::vector< Certificate::ref > &  certificateChain  )  [pure virtual]

This method is called to find out whether a certificate (chain) is trusted.

This usually happens when a certificate's validation fails, to check whether to proceed with the connection or not.

certificateChain contains the chain of certificates. The first certificate is the subject certificate.

Implemented in Swift::BlindCertificateTrustChecker.