defaultCertificateVerifier Class Reference
Inheritance diagram for defaultCertificateVerifier:
Collaboration diagram for defaultCertificateVerifier:

Public Member Functions

 defaultCertificateVerifier ()
 ~defaultCertificateVerifier ()
void setX509TrustedCerts (const std::vector< shared_ptr< X509Certificate > > &trustedCerts)
void setX509RootCAs (const std::vector< shared_ptr< X509Certificate > > &caCerts)
void verify (shared_ptr< certificateChain > chain, const string &hostname)

Additional Inherited Members

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

Detailed Description

Default implementation for certificate verification.

Constructor & Destructor Documentation

Member Function Documentation

void setX509RootCAs ( const std::vector< shared_ptr< X509Certificate > > &  caCerts)

Sets the X.509 root CAs used for certificate verification.

caCertslist of root CAs
void setX509TrustedCerts ( const std::vector< shared_ptr< X509Certificate > > &  trustedCerts)

Sets a list of X.509 certificates that are trusted.

trustedCertslist of trusted certificates
void verify ( shared_ptr< certificateChain chain,
const string hostname 

Verify that the specified certificate chain is trusted.

chaincertificate chain
hostnameserver hostname
unsupportedCertificateTypeExceptionif a certificate in the chain is of unsupported format
certificateExpiredExceptionif a certificate in the chain has expired
certificateNotYetValidExceptionif a certificate in the chain is not yet valid
certificateNotTrustedExceptionif a certificate in the chain cannot be verified against root and/or trusted certificates
certificateIssuerVerificationExceptionif a certificate in the chain cannot be verified against the next certificate (issuer)
serverIdentityExceptionif the subject name of the certificate does not match the hostname of the server

Implements certificateVerifier.

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