MessageDigestAttributeFactory.cpp
Go to the documentation of this file.00001
00009 #include "MessageDigestAttributeFactory.h"
00010 #include "OID.h"
00011 #include "Buffer.h"
00012 #include "MessageDigestAttribute.h"
00013 #include "ToolkitUtils.h"
00014 #include "components.h"
00015
00017 struct CPKIFMessageDigestAttributeFactoryImpl
00018 {
00019 CPKIFOIDPtr m_oid;
00020 CPKIFBufferList m_content;
00021 };
00023
00031 CPKIFMessageDigestAttributeFactory::CPKIFMessageDigestAttributeFactory()
00032 :m_impl (new CPKIFMessageDigestAttributeFactoryImpl)
00033 {
00034 LOG_STRING_DEBUG("CPKIFMessageDigestAttributeFactory::CPKIFMessageDigestAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00035 }
00043 void CPKIFMessageDigestAttributeFactory::Initialize()
00044 {
00045 LOG_STRING_DEBUG("CPKIFMessageDigestAttributeFactory::Initialize()", TOOLKIT_MESSAGE_ASN, 0, this);
00046 }
00054 CPKIFMessageDigestAttributeFactory::~CPKIFMessageDigestAttributeFactory()
00055 {
00056 LOG_STRING_DEBUG("CPKIFMessageDigestAttributeFactory::~CPKIFMessageDigestAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00057
00058 delete m_impl;
00059 m_impl = NULL;
00060 }
00068
00070
00071
00072
00073
00074
00075
00076
00077
00085 CPKIFAttributePtr CPKIFMessageDigestAttributeFactory::create(
00087 const CPKIFBufferPtr& buf)
00088 {
00089 LOG_STRING_DEBUG("CPKIFMessageDigestAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00090
00091 CPKIFMessageDigestAttributePtr tmp(new CPKIFMessageDigestAttribute(buf));
00092 return tmp;
00093 }
00094
00103 const char* CPKIFMessageDigestAttributeFactory::refOID()
00104 {
00105 return CPKIFMessageDigestAttribute::extOID;
00106 }