00001 00009 #ifndef __ExtendedKeyUsageFactory_H__ 00010 #define __ExtendedKeyUsageFactory_H__ 00011 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif // _MSC_VER > 1000 00015 00016 00017 #include "PKIFdll.h" 00018 #define CAC_API_FACTORY 00019 00020 #include "IPKIFColleague.h" 00021 #include "ICACExtensionFactory.h" 00022 00028 class CAC_API_FACTORY CPKIFExtendedKeyUsageFactory : public IPKIFColleague, public ICACExtensionFactory 00029 { 00030 public: 00031 CPKIFExtendedKeyUsageFactory(); 00032 virtual ~CPKIFExtendedKeyUsageFactory(); 00033 00034 void Initialize(); 00035 //CPKIFX509ExtensionPtr create(const CACX509V3Extension& ext); 00036 CPKIFX509ExtensionPtr create(bool criticality, const CPKIFBufferPtr& ext); 00037 const char* refOID(); 00038 00039 private: 00041 CPKIFExtendedKeyUsageFactory(const CPKIFExtendedKeyUsageFactory& ext); 00043 CPKIFExtendedKeyUsageFactory& operator=(const CPKIFExtendedKeyUsageFactory& rhs); //added 4/6/2004 00044 }; 00045 DECLARE_SMART_POINTERS(CPKIFExtendedKeyUsageFactory); 00046 #endif