VMime
certificateVerifier Class Referenceabstract
Inheritance diagram for certificateVerifier:
Collaboration diagram for certificateVerifier:

Public Member Functions

virtual void verify (shared_ptr< certificateChain > chain, const string &hostname)=0
 

Additional Inherited Members

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

Detailed Description

Verify that a certificate path issued by a server can be trusted.

Member Function Documentation

virtual void verify ( shared_ptr< certificateChain chain,
const string hostname 
)
pure virtual

Verify that the specified certificate chain is trusted.

Parameters
chaincertificate chain
hostnameserver hostname
Exceptions
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

Implemented in defaultCertificateVerifier.


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