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