00001 00009 #ifndef __SIGNINGTIMEATTRIBUTE_H__ 00010 #define __SIGNINGTIMEATTRIBUTE_H__ 00011 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif // _MSC_VER > 1000 00015 00016 #include "PKIFCMSDLL.h" 00017 #define PKIFCMS_API_FACTORY 00018 #include "Attribute.h" 00019 00020 FD_LIST_PTR(CPKIFBuffer); 00021 FD_SMART_PTR(CPKIFOID); 00022 FD_SMART_PTR(CPKIFTime); 00023 00030 class PKIFCMS_API CPKIFSigningTimeAttribute : public CPKIFAttribute 00031 { 00032 public: 00033 CPKIFSigningTimeAttribute(); 00034 CPKIFSigningTimeAttribute(const CPKIFBufferPtr& buf); 00035 ~CPKIFSigningTimeAttribute(); 00036 00037 static char extOID[]; 00038 00039 //generic attribute functions 00040 CPKIFOIDPtr GetOID() const; 00041 void GetValues(CPKIFBufferList& values) const; 00042 00043 CPKIFTimePtr GetTime() const; 00044 void SetTime(CPKIFTimePtr& time); 00045 00046 void SetUseUtcTimeIfPossible(bool bUseUtcIfPossible); 00047 bool GetUseUtcTimeIfPossible(); 00048 00049 private: 00051 CPKIFSigningTimeAttribute(const CPKIFSigningTimeAttribute& copy); 00053 CPKIFSigningTimeAttribute& operator=(const CPKIFSigningTimeAttribute& rhs); //added 4/6/2004 00054 00055 struct CPKIFSigningTimeAttributeImpl *m_impl; 00056 00057 }; 00058 DECLARE_SMART_POINTERS(CPKIFSigningTimeAttribute); 00059 00060 #endif //__SIGNINGTIMEATTRIBUTE_H__