00001 00009 #include "KeyUsageFactory.h" 00010 #include "KeyUsage.h" 00018 CPKIFKeyUsageFactory::CPKIFKeyUsageFactory() 00019 { 00020 } 00029 void CPKIFKeyUsageFactory::Initialize() 00030 { 00031 } 00039 CPKIFKeyUsageFactory::~CPKIFKeyUsageFactory() 00040 { 00041 } 00049 //CPKIFX509ExtensionPtr CPKIFKeyUsageFactory::create( 00050 // //![in] Reference to an internal representation of an extension containing information 00051 // //!to use to build a CPKIFKeyUsage object. 00052 // const CACX509V3Extension& ext) 00053 //{ 00054 // CPKIFKeyUsagePtr tmp(new CPKIFKeyUsage(ext)); 00055 // return tmp; 00056 //} 00057 00065 CPKIFX509ExtensionPtr CPKIFKeyUsageFactory::create( 00066 bool criticality, 00067 const CPKIFBufferPtr& ext) 00068 { 00069 CPKIFKeyUsagePtr tmp(new CPKIFKeyUsage(criticality, ext)); 00070 return tmp; 00071 } 00072 00073 00082 const char* CPKIFKeyUsageFactory::refOID() 00083 { 00084 return CPKIFKeyUsage::extOID; 00085 }