00001 00009 #include "PrivateKeyUsageFactory.h" 00010 #include "PrivateKeyUsage.h" 00011 00019 CPKIFPrivateKeyUsageFactory::CPKIFPrivateKeyUsageFactory() 00020 { 00021 } 00030 void CPKIFPrivateKeyUsageFactory::Initialize() 00031 { 00032 } 00040 CPKIFPrivateKeyUsageFactory::~CPKIFPrivateKeyUsageFactory() 00041 { 00042 } 00050 //CPKIFX509ExtensionPtr CPKIFPrivateKeyUsageFactory::create( 00051 // //![in] Reference to an internal representation of an extension containing information 00052 // //!to use to build a CPKIFPrivateKeyUsage object. 00053 // const CACX509V3Extension& ext) 00054 //{ 00055 // CPKIFPrivateKeyUsagePtr tmp(new CPKIFPrivateKeyUsage(ext)); 00056 // return tmp; 00057 //} 00058 00066 CPKIFX509ExtensionPtr CPKIFPrivateKeyUsageFactory::create( 00067 bool criticality, 00068 const CPKIFBufferPtr& ext) 00069 { 00070 CPKIFPrivateKeyUsagePtr tmp(new CPKIFPrivateKeyUsage(criticality, ext)); 00071 return tmp; 00072 } 00073 00082 const char* CPKIFPrivateKeyUsageFactory::refOID() 00083 { 00084 return CPKIFPrivateKeyUsage::extOID; 00085 } 00086