28 #ifndef CAXMLPRICECERT_H_
29 #define CAXMLPRICECERT_H_
48 static CAXMLPriceCert* getInstance(
const UINT8 * strXmlData,
UINT32 strXMLDataLength);
50 static CAXMLPriceCert* getInstance(DOMElement* elemRoot);
53 SINT32 toXmlElement(XERCES_CPP_NAMESPACE::DOMDocument* a_doc, DOMElement* & elemRoot);
58 if(m_domDocument==NULL)
75 UINT8 * getSubjectKeyIdentifier()
77 UINT8* pTmpStr = NULL;
78 if(m_StrSubjectKeyIdentifier!=NULL)
80 pTmpStr =
new UINT8[strlen((
char*)m_StrSubjectKeyIdentifier)+1];
81 strcpy((
char*)pTmpStr, (
char*)m_StrSubjectKeyIdentifier);
95 UINT8* getSignatureTime()
97 UINT8* pTmpStr = NULL;
98 if(m_StrSignatureTime!=NULL)
100 pTmpStr =
new UINT8[strlen((
char*)m_StrSignatureTime)+1];
101 strcpy((
char*)pTmpStr, (
char*)m_StrSignatureTime);
111 UINT8* pTmpStr = NULL;
114 pTmpStr =
new UINT8[strlen((
char*)m_StrBiID)+1];
115 strcpy((
char*)pTmpStr, (
char*)m_StrBiID);
120 static const char*
const getXMLElementName()
122 return ms_pStrElemName;
125 XERCES_CPP_NAMESPACE::DOMDocument* getXMLDocument()
127 return m_domDocument;
137 UINT8* m_StrSubjectKeyIdentifier;
139 UINT8* m_StrSignatureTime;
141 DOMElement* m_signature;
142 XERCES_CPP_NAMESPACE::DOMDocument* m_domDocument;
143 static const char*
const ms_pStrElemName;
An abstract base class for signable XML structures.
static SINT32 dumpToMem(const DOMNode *node, UINT8 *buff, UINT32 *size)
Dumps the node and all childs into buff.