|
Mixes for Privacy and Anonymity in the Internet
|
this class corresponds to anon.pay.xml.XMLEasyCC in the Java implementation More...
Public Member Functions | |
| ~CAXMLCostConfirmation () | |
| UINT32 | getNumberOfHashes () |
| SINT32 | getPosition (UINT32 a_hashNumber) |
| UINT8 * | getPriceCertHash (UINT32 a_hashNumber) |
| UINT8 * | getMixId (UINT32 a_hashNumber) |
| UINT8 * | dumpToMem (UINT32 *pLen) |
| dumps the XML CC to memory without trailing '0'. | |
| SINT32 | toXMLString (UINT8 *buff, UINT32 *bufflen) |
| dumps the XML CC to a string (with trailing '0'). | |
| UINT64 | getTransferredBytes () |
| UINT64 | getAccountNumber () |
| UINT32 | getID () |
| UINT8 * | getPIID () |
| XERCES_CPP_NAMESPACE::DOMDocument * | getXMLDocument () |
Static Public Member Functions | |
| static CAXMLCostConfirmation * | getInstance (UINT8 *strXmlData, UINT32 strXMlDataLen) |
| Tries to create an CAXMLCostConfirmation object from the given XML string. | |
| static CAXMLCostConfirmation * | getInstance (DOMElement *elemRoot) |
| Tries to create an CAXMLCostConfirmation object from the given XML string. | |
| static const char *const | getXMLElementName () |
Private Member Functions | |
| SINT32 | setValues () |
| CAXMLCostConfirmation () | |
| SINT32 | checkLen (UINT32 a_hashNumber) |
Private Attributes | |
| UINT64 | m_lTransferredBytes |
| UINT64 | m_lAccountNumber |
| UINT32 | m_id |
| CAPriceInfo ** | m_priceCerts |
| UINT32 | m_priceCertsLen |
| UINT8 * | m_pStrPIID |
| XERCES_CPP_NAMESPACE::DOMDocument * | m_domDocument |
Static Private Attributes | |
| static const char *const | ms_pStrElemName = "CC" |
this class corresponds to anon.pay.xml.XMLEasyCC in the Java implementation
| CAXMLCostConfirmation::CAXMLCostConfirmation | ( | ) | [private] |
References m_domDocument, m_priceCerts, and m_pStrPIID.
Referenced by getInstance().
References m_domDocument, m_priceCerts, m_priceCertsLen, and m_pStrPIID.
| SINT32 CAXMLCostConfirmation::checkLen | ( | UINT32 | a_hashNumber | ) | [private] |
References E_SUCCESS, E_UNKNOWN, and m_priceCertsLen.
Referenced by getMixId(), getPosition(), and getPriceCertHash().
| UINT8* CAXMLCostConfirmation::dumpToMem | ( | UINT32 * | pLen | ) |
dumps the XML CC to memory without trailing '0'.
References m_domDocument.
Referenced by CAAccountingBIInterface::settle().
References m_id.
| CAXMLCostConfirmation * CAXMLCostConfirmation::getInstance | ( | UINT8 * | strXmlData, |
| UINT32 | strXMlDataLen | ||
| ) | [static] |
Tries to create an CAXMLCostConfirmation object from the given XML string.
| NULL | if the XML data was wrong |
References CAXMLCostConfirmation(), E_SUCCESS, m_domDocument, parseDOMDocument(), and setValues().
Referenced by CAAccountingDBInterface::__getCostConfirmation(), CAAccountingDBInterface::__getUnsettledCostConfirmations(), CAAccountingInstance::handleCostConfirmation_internal(), and CAXMLErrorMessage::setValues().
| CAXMLCostConfirmation * CAXMLCostConfirmation::getInstance | ( | DOMElement * | elemRoot | ) | [static] |
Tries to create an CAXMLCostConfirmation object from the given XML string.
| NULL | if the XML data was wrong |
References CAXMLCostConfirmation(), createDOMDocument(), E_SUCCESS, m_domDocument, and setValues().
| UINT8* CAXMLCostConfirmation::getMixId | ( | UINT32 | a_hashNumber | ) |
References checkLen(), E_SUCCESS, CAPriceInfo::getMixId(), and m_priceCerts.
References m_priceCertsLen.
Referenced by CAAccountingInstance::cascadeMatchesCC(), and CAAccountingInstance::handleCostConfirmation_internal().
References m_pStrPIID.
| SINT32 CAXMLCostConfirmation::getPosition | ( | UINT32 | a_hashNumber | ) |
References checkLen(), E_SUCCESS, E_UNKNOWN, CAPriceInfo::getPosition(), and m_priceCerts.
| UINT8* CAXMLCostConfirmation::getPriceCertHash | ( | UINT32 | a_hashNumber | ) |
References checkLen(), E_SUCCESS, CAPriceInfo::getPriceCertHash(), and m_priceCerts.
Referenced by CAAccountingInstance::cascadeMatchesCC().
References m_lTransferredBytes.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingDBInterface::__storeCostConfirmation(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), and CAAccountingInstance::settlementTransaction().
| XERCES_CPP_NAMESPACE::DOMDocument* CAXMLCostConfirmation::getXMLDocument | ( | ) |
| static const char* const CAXMLCostConfirmation::getXMLElementName | ( | ) | [static] |
References ms_pStrElemName.
| SINT32 CAXMLCostConfirmation::setValues | ( | ) | [private] |
we do not use the price cert hashes for anything in the AI except storing them as part of the xml string in the db
if you need them, make sure the destructor deletes them (and initialize certArray with new(), otherwise it, and m_priceCerts with it, will be gone by the end of this method!!!)
References E_SUCCESS, E_UNKNOWN, equals(), getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), getElementsByTagName(), len, m_domDocument, m_lAccountNumber, m_lTransferredBytes, m_priceCerts, m_priceCertsLen, m_pStrPIID, and ms_pStrElemName.
Referenced by getInstance().
| SINT32 CAXMLCostConfirmation::toXMLString | ( | UINT8 * | buff, |
| UINT32 * | bufflen | ||
| ) |
dumps the XML CC to a string (with trailing '0').
References DOM_Output::dumpToMem(), E_SUCCESS, E_UNKNOWN, and m_domDocument.
Referenced by CAAccountingDBInterface::__storeCostConfirmation().
XERCES_CPP_NAMESPACE::DOMDocument* CAXMLCostConfirmation::m_domDocument [private] |
Referenced by CAXMLCostConfirmation(), dumpToMem(), getInstance(), getXMLDocument(), setValues(), toXMLString(), and ~CAXMLCostConfirmation().
UINT32 CAXMLCostConfirmation::m_id [private] |
Referenced by getID().
Referenced by getAccountNumber(), and setValues().
Referenced by getTransferredBytes(), and setValues().
CAPriceInfo** CAXMLCostConfirmation::m_priceCerts [private] |
Referenced by CAXMLCostConfirmation(), getMixId(), getPosition(), getPriceCertHash(), setValues(), and ~CAXMLCostConfirmation().
UINT32 CAXMLCostConfirmation::m_priceCertsLen [private] |
Referenced by checkLen(), getNumberOfHashes(), setValues(), and ~CAXMLCostConfirmation().
UINT8* CAXMLCostConfirmation::m_pStrPIID [private] |
Referenced by CAXMLCostConfirmation(), getPIID(), setValues(), and ~CAXMLCostConfirmation().
const char *const CAXMLCostConfirmation::ms_pStrElemName = "CC" [static, private] |
Referenced by getXMLElementName(), and setValues().
1.7.6.1