Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Protected Attributes | List of all members
CAAbstractXMLSignable Class Reference

An abstract base class for signable XML structures. More...

Inheritance diagram for CAAbstractXMLSignable:
CAAbstractXMLEncodable

Public Member Functions

 CAAbstractXMLSignable ()
 
virtual ~CAAbstractXMLSignable ()
 
SINT32 sign (CASignature &)
 TODO: implement. More...
 
SINT32 setSignature (DOMElement *elemSig)
 Verifies the signature. More...
 
SINT32 isSigned ()
 returns nonzero, if this structure is already signed More...
 
- Public Member Functions inherited from CAAbstractXMLEncodable
 CAAbstractXMLEncodable ()
 
virtual ~CAAbstractXMLEncodable ()
 pure virtual destructor. More...
 
virtual SINT32 toXmlElement (XERCES_CPP_NAMESPACE::DOMDocument *a_pDoc, DOMElement *&pElemRoot)=0
 Creates the XML structure inside an existing DOM_Document, but does not append it to any node. More...
 
SINT32 toXmlDocument (XERCES_CPP_NAMESPACE::DOMDocument *&pDoc)
 returns a pointer to the tagname of this XML structure's top level element. More...
 
UINT8toXmlString (UINT32 *pSize)
 Converts the XML structure to a null-terminated C-String representation. More...
 

Protected Attributes

XERCES_CPP_NAMESPACE::DOMDocument * m_pSignature
 

Detailed Description

An abstract base class for signable XML structures.

Author
Bastian Voigt

Constructor & Destructor Documentation

◆ CAAbstractXMLSignable()

CAAbstractXMLSignable::CAAbstractXMLSignable ( )

References m_pSignature.

◆ ~CAAbstractXMLSignable()

virtual CAAbstractXMLSignable::~CAAbstractXMLSignable ( )
virtual

References m_pSignature.

Member Function Documentation

◆ isSigned()

SINT32 CAAbstractXMLSignable::isSigned ( )

returns nonzero, if this structure is already signed

References m_pSignature.

◆ setSignature()

SINT32 CAAbstractXMLSignable::setSignature ( DOMElement *  elemSig)

Verifies the signature.

Returns E_SUCCESS if the signature is valid. sets the internal signature representation. Should be called from derived class constructors.

References ASSERT, createDOMDocument(), E_SUCCESS, and m_pSignature.

◆ sign()

SINT32 CAAbstractXMLSignable::sign ( CASignature )

TODO: implement.

References E_UNKNOWN.

Member Data Documentation

◆ m_pSignature

XERCES_CPP_NAMESPACE::DOMDocument* CAAbstractXMLSignable::m_pSignature
protected