|
Mixe for Privacy and Anonymity in the Internet
|
An abstract base class for signable XML structures. More...
#include <CAAbstractXMLSignable.hpp>
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 |
An abstract base class for signable XML structures.
Definition at line 17 of file CAAbstractXMLSignable.hpp.
| CAAbstractXMLSignable::CAAbstractXMLSignable | ( | ) | [inline] |
Definition at line 20 of file CAAbstractXMLSignable.hpp.
References m_pSignature.
: CAAbstractXMLEncodable() { m_pSignature = NULL; }
| 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;
}
}
| SINT32 CAAbstractXMLSignable::isSigned | ( | ) | [inline] |
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;
}
| SINT32 CAAbstractXMLSignable::sign | ( | CASignature & | ) | [inline] |
TODO: implement.
Definition at line 35 of file CAAbstractXMLSignable.hpp.
References E_UNKNOWN.
{
return E_UNKNOWN;
}
XERCES_CPP_NAMESPACE::DOMDocument* CAAbstractXMLSignable::m_pSignature [protected] |
Definition at line 83 of file CAAbstractXMLSignable.hpp.
Referenced by CAAbstractXMLSignable(), isSigned(), setSignature(), and ~CAAbstractXMLSignable().
1.7.6.1