Contains authencity information, authorization tokens and decisions. More...
#include <MessageAuth.h>
Public Member Functions | |
void | set (const std::string &key, SecAttr *value) |
void | remove (const std::string &key) |
SecAttr * | get (const std::string &key) |
SecAttr * | operator[] (const std::string &key) |
bool | Export (SecAttrFormat format, XMLNode &val) const |
MessageAuth * | Filter (const std::list< std::string > &selected_keys, const std::list< std::string > &rejected_keys) |
Contains authencity information, authorization tokens and decisions.
This class only supports string keys and SecAttr values.
bool Arc::MessageAuth::Export | ( | SecAttrFormat | format, | |
XMLNode & | val | |||
) | const |
Returns properly catenated attributes in specified format.
Content of XML node at is replaced with generated information if XML tree is empty. If tree at is not empty then Export() tries to merge generated information to already existing like everything would be generated inside same Export() method. If does not represent valid node then new XML tree is created.
MessageAuth* Arc::MessageAuth::Filter | ( | const std::list< std::string > & | selected_keys, | |
const std::list< std::string > & | rejected_keys | |||
) |
Creates new instance of MessageAuth with attributes filtered.
In new instance all attributes with keys listed in are removed. If is not empty only corresponding attributes are transferred to new instance. Created instance does not own refered attributes. Hence parent instance must not be deleted as long as this one is in use.