Mixe for Privacy and Anonymity in the Internet
Public Member Functions | Protected Attributes
CAAbstractXMLSignable Class Reference

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

#include <CAAbstractXMLSignable.hpp>

Inheritance diagram for CAAbstractXMLSignable:
[legend]
Collaboration diagram for CAAbstractXMLSignable:
[legend]

List of all members.

Public Member Functions

 CAAbstractXMLSignable ()
virtual ~CAAbstractXMLSignable ()
SINT32 sign (CASignature &)
 TODO: implement.
SINT32 setSignature (DOMElement *elemSig)
 Verifies the signature.
SINT32 isSigned ()
 returns nonzero, if this structure is already signed

Protected Attributes

XERCES_CPP_NAMESPACE::DOMDocument * m_pSignature

Detailed Description

An abstract base class for signable XML structures.

Author:
Bastian Voigt

Definition at line 17 of file CAAbstractXMLSignable.hpp.


Constructor & Destructor Documentation

Definition at line 20 of file CAAbstractXMLSignable.hpp.

References m_pSignature.

virtual CAAbstractXMLSignable::~CAAbstractXMLSignable ( ) [inline, virtual]

Definition at line 25 of file CAAbstractXMLSignable.hpp.

References m_pSignature.

  {
    if(m_pSignature!=NULL)
    {
      m_pSignature->release();
      m_pSignature = NULL;
    }
  }

Member Function Documentation

returns nonzero, if this structure is already signed

Definition at line 70 of file CAAbstractXMLSignable.hpp.

References m_pSignature.

    {
      if(m_pSignature!=NULL)
      {
        return true;
      }
      else
      {
        return false;
      }
    }
SINT32 CAAbstractXMLSignable::setSignature ( DOMElement *  elemSig) [inline]

Verifies the signature.

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

Definition at line 61 of file CAAbstractXMLSignable.hpp.

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

    {
      ASSERT(!elemSig==NULL, "Signature element is NULL")
      m_pSignature = createDOMDocument();
      m_pSignature->appendChild(m_pSignature->importNode(elemSig, true));
      return E_SUCCESS;
    }

Here is the call graph for this function:

TODO: implement.

Definition at line 35 of file CAAbstractXMLSignable.hpp.

References E_UNKNOWN.

    {
      return E_UNKNOWN;
    }

Member Data Documentation

XERCES_CPP_NAMESPACE::DOMDocument* CAAbstractXMLSignable::m_pSignature [protected]

The documentation for this class was generated from the following file: