SigningTimeAttributeFactory.cpp

Go to the documentation of this file.
00001 
00009 #include "SigningTimeAttributeFactory.h"
00010 #include "SigningTimeAttribute.h"
00011 
00012 #include "ToolkitUtils.h"
00013 #include "components.h"
00014 
00015 
00017 struct CPKIFSigningTimeAttributeFactoryImpl
00018 {
00019 };
00021 
00028 void CPKIFSigningTimeAttributeFactory::Initialize() 
00029 {
00030     LOG_STRING_DEBUG("CPKIFSigningTimeAttributeFactory::Initialize()", TOOLKIT_MESSAGE_ASN, 0, this);
00031 }
00039 CPKIFSigningTimeAttributeFactory::CPKIFSigningTimeAttributeFactory()
00040     :m_impl (new CPKIFSigningTimeAttributeFactoryImpl)
00041 {
00042     LOG_STRING_DEBUG("CPKIFSigningTimeAttributeFactory::CPKIFSigningTimeAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00043 }
00051 CPKIFSigningTimeAttributeFactory::~CPKIFSigningTimeAttributeFactory()
00052 {
00053     LOG_STRING_DEBUG("CPKIFSigningTimeAttributeFactory::~CPKIFSigningTimeAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00054 
00055     delete m_impl;
00056     m_impl = NULL;
00057 }
00066 /*CPKIFAttributePtr CPKIFSigningTimeAttributeFactory::create(
00069     const CACCMSAttribute& ext)
00070 {
00071     LOG_STRING_DEBUG("CPKIFSigningTimeAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00072 
00073     CPKIFSigningTimeAttributePtr tmp(new CPKIFSigningTimeAttribute(ext));
00074     return tmp;
00075 }*/
00076 
00085 CPKIFAttributePtr CPKIFSigningTimeAttributeFactory::create(
00088     const CPKIFBufferPtr& buf)
00089 {
00090     LOG_STRING_DEBUG("CPKIFSigningTimeAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00091 
00092     CPKIFSigningTimeAttributePtr tmp(new CPKIFSigningTimeAttribute(buf));
00093     return tmp;
00094 }
00095 
00104 const char* CPKIFSigningTimeAttributeFactory::refOID()
00105 {
00106     return CPKIFSigningTimeAttribute::extOID;
00107 }

Generated on Mon Nov 15 11:15:56 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6