00001 00009 #ifndef __Validity_H__ 00010 #define __Validity_H__ 00011 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif 00015 00016 00017 #include "PKIFdll.h" 00018 #define CAC_API_FACTORY 00019 00020 struct CPKIFValidityImpl; 00021 00022 struct CACX509V3Validity; 00023 FD_SMART_PTR(CPKIFTime); 00024 00031 class CAC_API CPKIFValidity 00032 { 00033 public: 00034 CPKIFValidity(); 00035 CPKIFValidity(const CPKIFTimePtr ¬Before, const CPKIFTimePtr ¬After); 00036 //CPKIFValidity(const CACX509V3Validity validity); 00037 virtual ~CPKIFValidity(); 00038 00039 CPKIFTimePtr notBefore() const; 00040 CPKIFTimePtr notAfter() const; 00041 00042 private: 00043 CPKIFValidity& operator=(const CPKIFValidity& rhs); 00044 CPKIFValidity(const CPKIFValidity& validity); 00045 00046 struct CPKIFValidityImpl *m_impl; 00047 }; 00048 00049 DECLARE_SMART_POINTERS(CPKIFValidity); 00050 00051 #endif