SigningCertificateAttributeFactory.cpp
Go to the documentation of this file.00001
00009 #include "SigningCertificateAttributeFactory.h"
00010 #include "SigningCertificateAttribute.h"
00011
00012 #include "ToolkitUtils.h"
00013 #include "components.h"
00014
00015
00017 struct CPKIFSigningCertificateAttributeFactoryImpl
00018 {
00019 };
00021
00028 void CPKIFSigningCertificateAttributeFactory::Initialize()
00029 {
00030 LOG_STRING_DEBUG("CPKIFSigningCertificateAttributeFactory::Initialize()", TOOLKIT_MESSAGE_ASN, 0, this);
00031 }
00039 CPKIFSigningCertificateAttributeFactory::CPKIFSigningCertificateAttributeFactory()
00040 :m_impl (new CPKIFSigningCertificateAttributeFactoryImpl)
00041 {
00042 LOG_STRING_DEBUG("CPKIFSigningCertificateAttributeFactory::CPKIFSigningCertificateAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00043 }
00051 CPKIFSigningCertificateAttributeFactory::~CPKIFSigningCertificateAttributeFactory()
00052 {
00053 LOG_STRING_DEBUG("CPKIFSigningCertificateAttributeFactory::~CPKIFSigningCertificateAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00054
00055 delete m_impl;
00056 m_impl = NULL;
00057 }
00058
00067 CPKIFAttributePtr CPKIFSigningCertificateAttributeFactory::create(
00070 const CPKIFBufferPtr& buf)
00071 {
00072 LOG_STRING_DEBUG("CPKIFSigningCertificateAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00073
00074 CPKIFSigningCertificateAttributePtr tmp(new CPKIFSigningCertificateAttribute(buf));
00075 return tmp;
00076 }
00077
00086 const char* CPKIFSigningCertificateAttributeFactory::refOID()
00087 {
00088 return CPKIFSigningCertificateAttribute::extOID;
00089 }